forked from qt-creator/qt-creator
QmlProject: Fix incorrect conversion of MCU property
Task-number: QDS-10376 Change-Id: Ic16d03355419281a0bf5c8bd04ba5fea317a70d4 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
This commit is contained in:
@@ -137,7 +137,7 @@ QString jsonToQmlProject(const QJsonObject &rootObject)
|
|||||||
appendString("qdsVersion", versionConfig["designStudio"].toString());
|
appendString("qdsVersion", versionConfig["designStudio"].toString());
|
||||||
appendString("quickVersion", versionConfig["qtQuick"].toString());
|
appendString("quickVersion", versionConfig["qtQuick"].toString());
|
||||||
appendBool("qt6Project", versionConfig["qt"].toString() == "6");
|
appendBool("qt6Project", versionConfig["qt"].toString() == "6");
|
||||||
appendBool("qtForMCUs", rootObject["mcuConfig"].toObject().isEmpty());
|
appendBool("qtForMCUs", !(rootObject["mcuConfig"].toObject().isEmpty()));
|
||||||
appendBreak();
|
appendBreak();
|
||||||
appendBool("multilanguageSupport", languageConfig["multiLanguageSupport"].toBool());
|
appendBool("multilanguageSupport", languageConfig["multiLanguageSupport"].toBool());
|
||||||
appendString("primaryLanguage", languageConfig["primaryLanguage"].toString());
|
appendString("primaryLanguage", languageConfig["primaryLanguage"].toString());
|
||||||
|
|||||||
@@ -91,6 +91,8 @@ Project {
|
|||||||
|
|
||||||
quickVersion: "6.2"
|
quickVersion: "6.2"
|
||||||
|
|
||||||
|
qtForMCUs: true
|
||||||
|
|
||||||
/* If any modules the project imports require widgets (e.g. QtCharts), widgetApp must be true */
|
/* If any modules the project imports require widgets (e.g. QtCharts), widgetApp must be true */
|
||||||
widgetApp: true
|
widgetApp: true
|
||||||
|
|
||||||
|
|||||||
@@ -147,6 +147,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"mcuConfig": {
|
"mcuConfig": {
|
||||||
|
"mcuEnabled": true
|
||||||
},
|
},
|
||||||
"runConfig": {
|
"runConfig": {
|
||||||
"fileSelectors": [
|
"fileSelectors": [
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ Project {
|
|||||||
qdsVersion: ""
|
qdsVersion: ""
|
||||||
quickVersion: ""
|
quickVersion: ""
|
||||||
qt6Project: false
|
qt6Project: false
|
||||||
qtForMCUs: true
|
qtForMCUs: false
|
||||||
|
|
||||||
multilanguageSupport: false
|
multilanguageSupport: false
|
||||||
primaryLanguage: ""
|
primaryLanguage: ""
|
||||||
|
|||||||
Reference in New Issue
Block a user