RemoteLinux: Move portsUsedByDebugger() to DebuggerRunConfigurationAspect

Change-Id: I0add29c3c69c4ba59cea159f32ca74be58bcee59
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
hjk
2016-01-26 14:09:13 +01:00
parent 9a3b340c00
commit 403fe30a30
6 changed files with 23 additions and 19 deletions

View File

@@ -292,6 +292,16 @@ bool DebuggerRunConfigurationAspect::isQmlDebuggingSpinboxSuppressed() const
return dev->canAutoDetectPorts();
}
int DebuggerRunConfigurationAspect::portsUsedByDebugger() const
{
int ports = 0;
if (useQmlDebugger())
++ports;
if (useCppDebugger())
++ports;
return ports;
}
void DebuggerRunConfigurationAspect::toMap(QVariantMap &map) const
{
map.insert(QLatin1String(USE_CPP_DEBUGGER_KEY), d.useCppDebugger == EnabledLanguage);