forked from qt-creator/qt-creator
Wizards: Fix Kit selection for Qt 6.5 cmake projects
Fixes: QTCREATORBUG-31852 Change-Id: I60076435ced9febb92b29ccbb57c65602f9284e4 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -19,7 +19,8 @@
|
|||||||
{ "key": "CMakeFile", "value": "%{ProjectDirectory}/CMakeLists.txt" },
|
{ "key": "CMakeFile", "value": "%{ProjectDirectory}/CMakeLists.txt" },
|
||||||
{ "key": "MesonFile", "value": "%{ProjectDirectory}/meson.build" },
|
{ "key": "MesonFile", "value": "%{ProjectDirectory}/meson.build" },
|
||||||
{ "key": "HasTranslation", "value": "%{JS: value('TsFileName') !== ''}" },
|
{ "key": "HasTranslation", "value": "%{JS: value('TsFileName') !== ''}" },
|
||||||
{ "key": "CppFileName", "value": "%{JS: 'main.' + Util.preferredSuffix('text/x-c++src')}" }
|
{ "key": "CppFileName", "value": "%{JS: 'main.' + Util.preferredSuffix('text/x-c++src')}" },
|
||||||
|
{ "key": "FeatureQt", "value": "QtSupport.Wizards.FeatureQt%{JS: value('BuildSystem') === 'cmake-qt6' ? '.6.5' : ''}" }
|
||||||
],
|
],
|
||||||
|
|
||||||
"pages":
|
"pages":
|
||||||
@@ -86,7 +87,10 @@
|
|||||||
"trDisplayName": "Kit Selection",
|
"trDisplayName": "Kit Selection",
|
||||||
"trShortTitle": "Kits",
|
"trShortTitle": "Kits",
|
||||||
"typeId": "Kits",
|
"typeId": "Kits",
|
||||||
"data": { "projectFilePath": "%{ProjectFile}" }
|
"data": {
|
||||||
|
"projectFilePath": "%{ProjectFile}",
|
||||||
|
"requiredFeatures": [ "%{FeatureQt}"]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"trDisplayName": "Project Management",
|
"trDisplayName": "Project Management",
|
||||||
|
@@ -25,9 +25,9 @@
|
|||||||
{ "key": "UiHdrFileName", "value": "%{JS: (value('BuildSystem') === 'cmake' ? (Util.path(value('FormFileName')) + '/') : '') + 'ui_' + Util.completeBaseName(value('FormFileName')) + '.h'}" },
|
{ "key": "UiHdrFileName", "value": "%{JS: (value('BuildSystem') === 'cmake' ? (Util.path(value('FormFileName')) + '/') : '') + 'ui_' + Util.completeBaseName(value('FormFileName')) + '.h'}" },
|
||||||
{ "key": "CN", "value": "%{JS: Cpp.className(value('Class'))}" },
|
{ "key": "CN", "value": "%{JS: Cpp.className(value('Class'))}" },
|
||||||
{ "key": "HasTranslation", "value": "%{JS: value('TsFileName') !== ''}" },
|
{ "key": "HasTranslation", "value": "%{JS: value('TsFileName') !== ''}" },
|
||||||
{ "key": "GUARD", "value": "%{JS: Cpp.headerGuard(value('HdrFileName'))}" }
|
{ "key": "GUARD", "value": "%{JS: Cpp.headerGuard(value('HdrFileName'))}" },
|
||||||
|
{ "key": "FeatureQt", "value": "QtSupport.Wizards.FeatureQt%{JS: value('BuildSystem') === 'cmake-qt6' ? '.6.5' : ''}" }
|
||||||
],
|
],
|
||||||
|
|
||||||
"pages":
|
"pages":
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
@@ -165,7 +165,10 @@
|
|||||||
"trDisplayName": "Kit Selection",
|
"trDisplayName": "Kit Selection",
|
||||||
"trShortTitle": "Kits",
|
"trShortTitle": "Kits",
|
||||||
"typeId": "Kits",
|
"typeId": "Kits",
|
||||||
"data": { "projectFilePath": "%{ProjectFile}" }
|
"data": {
|
||||||
|
"projectFilePath": "%{ProjectFile}",
|
||||||
|
"requiredFeatures": [ "%{FeatureQt}"]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"trDisplayName": "Project Management",
|
"trDisplayName": "Project Management",
|
||||||
|
Reference in New Issue
Block a user