QmlDesigner.Wizards: Extend version combobox

This patch allows to distinguish between 6.2 and 6.3.

Change-Id: I9ba4c9984673e9e9e6f7d50a1ea35704f7e00211
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Thomas Hartmann
2022-05-24 16:59:08 +02:00
parent d92bdcce40
commit e2f20ddcd5
8 changed files with 63 additions and 19 deletions

View File

@@ -414,14 +414,15 @@ Item {
SC.ComboBox { // Target Qt Version ComboBox
id: qtVersionComboBox
actionIndicatorVisible: false
implicitWidth: 70
implicitWidth: 82
Layout.alignment: Qt.AlignRight
currentIndex: BackendApi.targetQtVersionIndex
font.pixelSize: DialogValues.defaultPixelSize
model: ListModel {
ListElement { name: "Qt 5" }
ListElement { name: "Qt 6" }
ListElement { name: "Qt 5.15" }
ListElement { name: "Qt 6.2" }
ListElement { name: "Qt 6.3" }
}
onActivated: (index) => {

View File

@@ -236,23 +236,28 @@
"type": "ComboBox",
"data":
{
"index": 1,
"index": 2,
"items":
[
{
"trKey": "Qt 5",
"value":
"({
'TargetQuickVersion': '2.15',
'TargetQuick3DVersion': '1.15'
'TargetQuickVersion': '2.15'
})"
},
{
"trKey": "Qt 6",
"trKey": "Qt 6.2",
"value":
"({
'TargetQuickVersion': '',
'TargetQuick3DVersion': ''
'TargetQuickVersion': '6.2'
})"
},
{
"trKey": "Qt 6.3",
"value":
"({
'TargetQuickVersion': '6.3'
})"
}
]

View File

@@ -249,10 +249,17 @@
})"
},
{
"trKey": "Qt 6",
"trKey": "Qt 6.2",
"value":
"({
'TargetQuickVersion': ''
'TargetQuickVersion': '6.2'
})"
},
{
"trKey": "Qt 6.3",
"value":
"({
'TargetQuickVersion': '6.3'
})"
}
]

View File

@@ -92,6 +92,8 @@ Project {
qdsVersion: "3.4"
quickVersion: "%{QtQuickVersion}"
@if %{IsQt6Project}
/* If any modules the project imports require widgets (e.g. QtCharts), widgetApp must be true */
widgetApp: true

View File

@@ -235,6 +235,7 @@
"data":
{
"index": 1,
"items":
"items":
[
{
@@ -245,10 +246,17 @@
})"
},
{
"trKey": "Qt 6",
"trKey": "Qt 6.2",
"value":
"({
'TargetQuickVersion': ''
'TargetQuickVersion': '6.2'
})"
},
{
"trKey": "Qt 6.3",
"value":
"({
'TargetQuickVersion': '6.3'
})"
}
]

View File

@@ -204,10 +204,17 @@
})"
},
{
"trKey": "Qt 6",
"trKey": "Qt 6.2",
"value":
"({
'TargetQuickVersion': ''
'TargetQuickVersion': '6.2'
})"
},
{
"trKey": "Qt 6.3",
"value":
"({
'TargetQuickVersion': '6.3'
})"
}
]

View File

@@ -202,10 +202,17 @@
})"
},
{
"trKey": "Qt 6",
"trKey": "Qt 6.2",
"value":
"({
'TargetQuickVersion': ''
'TargetQuickVersion': '6.2'
})"
},
{
"trKey": "Qt 6.3",
"value":
"({
'TargetQuickVersion': '6.3'
})"
}
]

View File

@@ -202,10 +202,17 @@
})"
},
{
"trKey": "Qt 6",
"trKey": "Qt 6.2",
"value":
"({
'TargetQuickVersion': ''
'TargetQuickVersion': '6.2'
})"
},
{
"trKey": "Qt 6.3",
"value":
"({
'TargetQuickVersion': '6.3'
})"
}
]