Analyzer: Split AnalyzerStartParameters

... into AnalyzerRunnable and AnalyzerConnection and use the
RunControl's storage instead of an own copy in AnalyzerRunControl.

This is an intermediate step on the way to remove
AnalyzerStartParameters.

Change-Id: Iee7c38781b2fd6ef030dcdada1993684cbb34c74
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
hjk
2016-01-18 17:49:29 +01:00
parent 077079cf2a
commit dcba1b3c36
7 changed files with 44 additions and 21 deletions

View File

@@ -105,9 +105,9 @@ bool QmlProfilerRunControl::startEngine()
{
QTC_ASSERT(d->m_profilerState, return false);
if (startParameters().analyzerPort != 0)
emit processRunning(startParameters().analyzerPort);
else if (startParameters().analyzerSocket.isEmpty())
if (connection().analyzerPort != 0)
emit processRunning(connection().analyzerPort);
else if (connection().analyzerSocket.isEmpty())
d->m_noDebugOutputTimer.start();
d->m_profilerState->setCurrentState(QmlProfilerStateManager::AppRunning);
@@ -229,7 +229,7 @@ void QmlProfilerRunControl::processIsRunning(quint16 port)
d->m_noDebugOutputTimer.stop();
if (port == 0)
port = startParameters().analyzerPort;
port = connection().analyzerPort;
if (port != 0)
emit processRunning(port);
}