aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSivert Krøvel <sivert.krovel@qt.io>2023-03-03 10:56:37 +0100
committerSivert Krøvel <sivert.krovel@qt.io>2023-03-07 15:57:18 +0000
commitb9fb022389e27d4f97959876e374e81ee992cf41 (patch)
tree63b8fe790f573c8b2b0d61235d207b72c1ed65be
parent0d809806d4d4cc0a1a93b79c3fd2368a5c190061 (diff)
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 <yasser.grimes@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
-rw-r--r--src/plugins/mcusupport/wizards/qmlproject/wizard.json20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/plugins/mcusupport/wizards/qmlproject/wizard.json b/src/plugins/mcusupport/wizards/qmlproject/wizard.json
index 0dd565d731..173c430eeb 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",