QmlProjectManager: Use setup pattern for QmlProjectRunConfiguration

Change-Id: Ib69a09c65a4755312663286fddbd891c4f7c49ce
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2024-01-18 10:23:11 +01:00
parent 6467797af2
commit f52cf6b564
3 changed files with 21 additions and 17 deletions

View File

@@ -102,7 +102,6 @@ static void clearAlwaysOpenWithMode()
class QmlProjectPluginPrivate
{
public:
QmlProjectRunConfigurationFactory runConfigFactory;
QPointer<QMessageBox> lastMessageBox;
QdsLandingPage *landingPage = nullptr;
QdsLandingPageWidget *landingPageWidget = nullptr;
@@ -274,6 +273,8 @@ private:
void QmlProjectPlugin::initialize()
{
setupQmlProjectRunConfiguration();
d = new QmlProjectPluginPrivate;
if (!qmlDesignerEnabled()) {