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
{
StartLocal = -1,
StartRemote = -2,
StartQml = -3,
StartQmlRemote = -4 // TODO: remove this enum and make it generic
};
......
......@@ -68,7 +68,6 @@ Id IAnalyzerTool::actionId(StartMode mode) const
return id.withSuffix(".Local");
case StartRemote:
return id.withSuffix(".Remote");
case StartQml:
case StartQmlRemote:
return id.withSuffix(".Qml");
}
......
......@@ -97,7 +97,7 @@ LocalQmlProfilerRunner::~LocalQmlProfilerRunner()
void LocalQmlProfilerRunner::start()
{
if (m_engine->mode() != Analyzer::StartQml)
if (m_engine->mode() != Analyzer::StartLocal)
return;
QString arguments = QString::fromLatin1("-qmljsdebugger=port:%1,block").arg(m_configuration.port);
......@@ -136,7 +136,7 @@ void LocalQmlProfilerRunner::spontaneousStop(int exitCode, QProcess::ExitStatus
void LocalQmlProfilerRunner::stop()
{
if (m_engine->mode() != Analyzer::StartQml)
if (m_engine->mode() != Analyzer::StartLocal)
return;
if (QmlProfilerPlugin::debugOutput)
......
......@@ -108,7 +108,7 @@ static AnalyzerStartParameters createQmlProfilerStartParameters(RunConfiguration
sp.analyzerHost = server.serverAddress().toString();
sp.analyzerPort = server.serverPort();
}
sp.startMode = StartQml;
sp.startMode = StartLocal;
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