iOS: Avoid use of RunControl::runConfiguration() in QmlProfiler support

Change-Id: Id296ddb364c7503506e32c01d594cdca15715859
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2019-08-30 14:04:20 +02:00
parent 524a1f431c
commit d39d26a54f

View File

@@ -387,14 +387,6 @@ IosQmlProfilerSupport::IosQmlProfilerSupport(RunControl *runControl)
{ {
setId("IosQmlProfilerSupport"); setId("IosQmlProfilerSupport");
auto iosRunConfig = qobject_cast<IosRunConfiguration *>(runControl->runConfiguration());
Runnable runnable;
runnable.executable = iosRunConfig->localExecutable();
runnable.commandLineArguments =
runControl->aspect<ArgumentsAspect>()->arguments(iosRunConfig->macroExpander());
runControl->setDisplayName(iosRunConfig->applicationName());
runControl->setRunnable(runnable);
m_runner = new IosRunner(runControl); m_runner = new IosRunner(runControl);
m_runner->setQmlDebugging(QmlDebug::QmlProfilerServices); m_runner->setQmlDebugging(QmlDebug::QmlProfilerServices);
addStartDependency(m_runner); addStartDependency(m_runner);