DeviceSupport: Add canAutoDetectPorts() method

Use case: Devices such as Desktop device can
automatically choose an available port.

Change-Id: I6515425da3ae861b62d103885e2fde0e542d21d0
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
This commit is contained in:
Aurindam Jana
2013-04-18 09:31:22 +02:00
parent 55de6a9fb9
commit 23be3df051
6 changed files with 16 additions and 1 deletions

View File

@@ -288,7 +288,7 @@ bool DebuggerRunConfigurationAspect::isQmlDebuggingSpinboxSuppressed() const
ProjectExplorer::IDevice::ConstPtr dev = ProjectExplorer::DeviceKitInformation::device(k);
if (dev.isNull())
return false;
return dev->portsGatheringMethod().isNull(); // We know the free ports...
return dev->canAutoDetectPorts();
}
QString DebuggerRunConfigurationAspect::displayName() const