diff options
author | hjk <hjk@qt.io> | 2017-05-09 10:25:11 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2017-05-15 14:35:03 +0000 |
commit | 89f02cba2ca65f84d99b0b35f555da024f3e2234 (patch) | |
tree | 408bd4b2da13e00227697f871cefbf1ea9c4ab98 /src/plugins/ios/iosrunfactories.cpp | |
parent | 9b93d5a330a4898d12ce99414a51d1bd6cda51ec (diff) | |
download | qt-creator-89f02cba2ca65f84d99b0b35f555da024f3e2234.tar.gz |
ProjectExplorer: Split Target and ToolRunners into smaller tasks
This increases re-usability of activities like 'port gathering',
and makes their use less dependent on actual device implementations.
Change-Id: I017cb74874f2b38c487ba2d03906a675d5618647
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/ios/iosrunfactories.cpp')
-rw-r--r-- | src/plugins/ios/iosrunfactories.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/ios/iosrunfactories.cpp b/src/plugins/ios/iosrunfactories.cpp index b331fdb9f4..5571258d63 100644 --- a/src/plugins/ios/iosrunfactories.cpp +++ b/src/plugins/ios/iosrunfactories.cpp @@ -184,11 +184,8 @@ RunControl *IosRunControlFactory::create(RunConfiguration *runConfig, if (mode == ProjectExplorer::Constants::NORMAL_RUN_MODE) res = new Ios::Internal::IosRunControl(rc); else if (mode == ProjectExplorer::Constants::QML_PROFILER_RUN_MODE) { - RunControl *runControl = Debugger::createAnalyzerRunControl(runConfig, mode); - QTC_ASSERT(runControl, return 0); - IDevice::ConstPtr device = DeviceKitInformation::device(target->kit()); - if (device.isNull()) - return 0; + auto runControl = new RunControl(runConfig, mode); + runControl->createWorker(mode); auto iosRunConfig = qobject_cast<IosRunConfiguration *>(runConfig); StandardRunnable runnable; runnable.executable = iosRunConfig->localExecutable().toUserOutput(); |