Commit e61c797c authored by Aurindam Jana's avatar Aurindam Jana

QmlProfiler: Use StartLocal instead of StartQml start mode.

Change-Id: Iee7895e9cafc373c32749f3dcc44a690dfc551bc
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 37cc7657
...@@ -44,7 +44,6 @@ enum StartMode ...@@ -44,7 +44,6 @@ enum StartMode
{ {
StartLocal = -1, StartLocal = -1,
StartRemote = -2, StartRemote = -2,
StartQml = -3,
StartQmlRemote = -4 // TODO: remove this enum and make it generic StartQmlRemote = -4 // TODO: remove this enum and make it generic
}; };
......
...@@ -68,7 +68,6 @@ Id IAnalyzerTool::actionId(StartMode mode) const ...@@ -68,7 +68,6 @@ Id IAnalyzerTool::actionId(StartMode mode) const
return id.withSuffix(".Local"); return id.withSuffix(".Local");
case StartRemote: case StartRemote:
return id.withSuffix(".Remote"); return id.withSuffix(".Remote");
case StartQml:
case StartQmlRemote: case StartQmlRemote:
return id.withSuffix(".Qml"); return id.withSuffix(".Qml");
} }
......
...@@ -97,7 +97,7 @@ LocalQmlProfilerRunner::~LocalQmlProfilerRunner() ...@@ -97,7 +97,7 @@ LocalQmlProfilerRunner::~LocalQmlProfilerRunner()
void LocalQmlProfilerRunner::start() void LocalQmlProfilerRunner::start()
{ {
if (m_engine->mode() != Analyzer::StartQml) if (m_engine->mode() != Analyzer::StartLocal)
return; return;
QString arguments = QString::fromLatin1("-qmljsdebugger=port:%1,block").arg(m_configuration.port); QString arguments = QString::fromLatin1("-qmljsdebugger=port:%1,block").arg(m_configuration.port);
...@@ -136,7 +136,7 @@ void LocalQmlProfilerRunner::spontaneousStop(int exitCode, QProcess::ExitStatus ...@@ -136,7 +136,7 @@ void LocalQmlProfilerRunner::spontaneousStop(int exitCode, QProcess::ExitStatus
void LocalQmlProfilerRunner::stop() void LocalQmlProfilerRunner::stop()
{ {
if (m_engine->mode() != Analyzer::StartQml) if (m_engine->mode() != Analyzer::StartLocal)
return; return;
if (QmlProfilerPlugin::debugOutput) if (QmlProfilerPlugin::debugOutput)
......
...@@ -108,7 +108,7 @@ static AnalyzerStartParameters createQmlProfilerStartParameters(RunConfiguration ...@@ -108,7 +108,7 @@ static AnalyzerStartParameters createQmlProfilerStartParameters(RunConfiguration
sp.analyzerHost = server.serverAddress().toString(); sp.analyzerHost = server.serverAddress().toString();
sp.analyzerPort = server.serverPort(); sp.analyzerPort = server.serverPort();
} }
sp.startMode = StartQml; sp.startMode = StartLocal;
return sp; return sp;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment