summaryrefslogtreecommitdiff
path: root/src/plugins/qmlprofiler
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2016-01-18 17:49:29 +0100
committerhjk <hjk@theqtcompany.com>2016-01-20 09:39:45 +0000
commitdcba1b3c3658ae0b04a70959b9c4f3031d515fd5 (patch)
treebb111346d9f3370a332056b83479000d804f1de6 /src/plugins/qmlprofiler
parent077079cf2a79b4e4c2fd63c4b9cd0da3dff6c1ff (diff)
downloadqt-creator-dcba1b3c3658ae0b04a70959b9c4f3031d515fd5.tar.gz
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>
Diffstat (limited to 'src/plugins/qmlprofiler')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp b/src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp
index 1f202128cf..edbbc65347 100644
--- a/src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilerruncontrol.cpp
@@ -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);
}