QmlProfiler: finalize setup when starting

Change-Id: If7cf8158bf4c0cd6a2ffff2d5157a98f2d8c0f50
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2016-01-20 18:45:02 +01:00
parent b85c0204a0
commit 434b51dca6
4 changed files with 1 additions and 8 deletions

View File

@@ -106,6 +106,7 @@ QmlProfilerRunControl::~QmlProfilerRunControl()
bool QmlProfilerRunControl::startEngine()
{
d->m_tool->finalizeRunControl(this);
QTC_ASSERT(d->m_profilerState, return false);
if (connection().analyzerPort != 0)
@@ -252,11 +253,6 @@ void QmlProfilerRunControl::registerProfilerStateManager( QmlProfilerStateManage
this, &QmlProfilerRunControl::profilerStateChanged);
}
void QmlProfilerRunControl::finalizeSetup()
{
d->m_tool->finalizeRunControl(this);
}
void QmlProfilerRunControl::profilerStateChanged()
{
switch (d->m_profilerState->currentState()) {

View File

@@ -45,7 +45,6 @@ public:
~QmlProfilerRunControl();
void registerProfilerStateManager( QmlProfilerStateManager *profilerState );
void finalizeSetup();
void notifyRemoteSetupDone(quint16 port);
StopResult stop();

View File

@@ -98,7 +98,6 @@ RunControl *QmlProfilerRunControlFactory::create(RunConfiguration *runConfigurat
runControl->setRunnable(runnable);
runControl->setConnection(connection);
runControl->finalizeSetup();
LocalQmlProfilerRunner::Configuration conf;
conf.executable = runnable.debuggee;

View File

@@ -527,7 +527,6 @@ void QmlProfilerTool::startRemoteTool()
auto runControl = qobject_cast<QmlProfilerRunControl *>(createRunControl(0));
runControl->setConnection(connection);
runControl->finalizeSetup();
ProjectExplorerPlugin::startRunControl(runControl, ProjectExplorer::Constants::QML_PROFILER_RUN_MODE);
}