forked from qt-creator/qt-creator
ProjectExplorer: use enum instead of QString for run mode
Change-Id: Ia906944a489b09afdea59f74afbf759b4caebe37 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com> Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -54,7 +54,7 @@ RemoteLinuxQmlProfilerRunner::RemoteLinuxQmlProfilerRunner(
|
||||
= PluginManager::instance()->getObjects<IRunControlFactory>();
|
||||
|
||||
foreach (IRunControlFactory *factory, runControlFactories) {
|
||||
if (factory->canRun(runConfiguration, ProjectExplorer::Constants::RUNMODE)) {
|
||||
if (factory->canRun(runConfiguration, NormalRunMode)) {
|
||||
runControlFactory = factory;
|
||||
break;
|
||||
}
|
||||
@@ -63,8 +63,7 @@ RemoteLinuxQmlProfilerRunner::RemoteLinuxQmlProfilerRunner(
|
||||
QTC_ASSERT(runControlFactory, return);
|
||||
|
||||
// create run control
|
||||
RunControl *runControl = runControlFactory->create(runConfiguration,
|
||||
ProjectExplorer::Constants::RUNMODE);
|
||||
RunControl *runControl = runControlFactory->create(runConfiguration, NormalRunMode);
|
||||
|
||||
m_runControl = qobject_cast<AbstractRemoteLinuxRunControl*>(runControl);
|
||||
QTC_ASSERT(m_runControl, return);
|
||||
|
||||
Reference in New Issue
Block a user