From b9fb022389e27d4f97959876e374e81ee992cf41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sivert=20Kr=C3=B8vel?= Date: Fri, 3 Mar 2023 10:56:37 +0100 Subject: [PATCH] McuSupport: Open QML file when starting new MCU project Previously the editor opened the translation file when starting a new project. It makes more sense to open up the main QML file. Task-number: QTCREATORBUG-28790 Change-Id: If1f61d23e4863143cacf004246ca7813dd04a1ab Reviewed-by: Yasser Grimes Reviewed-by: Reviewed-by: Alessandro Portale --- .../mcusupport/wizards/qmlproject/wizard.json | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/plugins/mcusupport/wizards/qmlproject/wizard.json b/src/plugins/mcusupport/wizards/qmlproject/wizard.json index 0dd565d731e..173c430eeb4 100644 --- a/src/plugins/mcusupport/wizards/qmlproject/wizard.json +++ b/src/plugins/mcusupport/wizards/qmlproject/wizard.json @@ -56,13 +56,8 @@ "openAsProject": true }, { - "source": "project.qmlproject.tpl", - "target": "%{ProjectDirectory}/%{QmlProjectFile}", - "openInEditor": true - }, - { - "source": "main.qml.tpl", - "target": "%{ProjectDirectory}/%{MainQmlFile}", + "source": "BackendObject.h", + "target": "%{ProjectDirectory}/src/%{InterfaceFile}", "openInEditor": true }, { @@ -76,8 +71,13 @@ "openInEditor": true }, { - "source": "BackendObject.h", - "target": "%{ProjectDirectory}/src/%{InterfaceFile}", + "source": "project.qmlproject.tpl", + "target": "%{ProjectDirectory}/%{QmlProjectFile}", + "openInEditor": true + }, + { + "source": "main.qml.tpl", + "target": "%{ProjectDirectory}/%{MainQmlFile}", "openInEditor": true }, { @@ -98,7 +98,7 @@ { "source": "translation.nb_NO.ts", "target": "%{ProjectDirectory}/translations/%{TsFile}", - "openInEditor": true + "openInEditor": false }, { "source": "%{IDE:ResourcePath}/templates/wizards/projects/git.ignore",