aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2023-01-06 13:56:00 +0100
committerhjk <[email protected]>2023-01-10 12:02:51 +0000
commitf08b5727dc5947193f15353e10f798296e385324 (patch)
treeeb52e70e0b18e428f866f072c161fb4ef753f1aa /src/plugins/qmlprojectmanager/qmlprojectplugin.cpp
parentc7884a2b171470fb7f8821be7ed6a46a2db3d851 (diff)
ProjectExplorer: Introduce and use convenience factory class
... to create SimpleTargetRunner runners for a single run config. Change-Id: I8af3d7cdcaf54f0584af948aa6e0fa015d1a3077 Reviewed-by: Christian Stenger <[email protected]>
Diffstat (limited to 'src/plugins/qmlprojectmanager/qmlprojectplugin.cpp')
-rw-r--r--src/plugins/qmlprojectmanager/qmlprojectplugin.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp b/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp
index 37a34f3f8b2..6e647f3719f 100644
--- a/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp
+++ b/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp
@@ -51,8 +51,7 @@
using namespace ProjectExplorer;
-namespace QmlProjectManager {
-namespace Internal {
+namespace QmlProjectManager::Internal {
static bool isQmlDesigner(const ExtensionSystem::PluginSpec *spec)
{
@@ -90,9 +89,7 @@ class QmlProjectPluginPrivate
{
public:
QmlProjectRunConfigurationFactory runConfigFactory;
- RunWorkerFactory runWorkerFactory{RunWorkerFactory::make<SimpleTargetRunner>(),
- {ProjectExplorer::Constants::NORMAL_RUN_MODE},
- {runConfigFactory.runConfigurationId()}};
+ SimpleTargetRunnerFactory runWorkerFactory{{runConfigFactory.runConfigurationId()}};
QPointer<QMessageBox> lastMessageBox;
QdsLandingPage *landingPage = nullptr;
QdsLandingPageWidget *landingPageWidget = nullptr;
@@ -457,5 +454,4 @@ Utils::FilePath QmlProjectPlugin::projectFilePath()
return {};
}
-} // namespace Internal
-} // namespace QmlProjectManager
+} // QmlProjectManager::Internal