forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user