aboutsummaryrefslogtreecommitdiffstats
path: root/examples/ivivehiclefunctions/window_qml/WindowItem.qml
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@qt.io>2021-05-31 12:46:41 +0200
committerDominik Holland <dominik.holland@qt.io>2021-06-02 13:35:55 +0200
commit9b88a6776212820079c62b11304546b7028a3585 (patch)
tree63913e56452c978f0f66bedf89a71e4da8d0e3b3 /examples/ivivehiclefunctions/window_qml/WindowItem.qml
parentb2107c897eb0a945c2a3b756322f261c549c13aa (diff)
Port remaining examples to use QtQuick Controls 2
Change-Id: Ia3e1930220dfb35da4b3d5b77a4d4a70d3cc80e3 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
Diffstat (limited to 'examples/ivivehiclefunctions/window_qml/WindowItem.qml')
-rw-r--r--examples/ivivehiclefunctions/window_qml/WindowItem.qml19
1 files changed, 9 insertions, 10 deletions
diff --git a/examples/ivivehiclefunctions/window_qml/WindowItem.qml b/examples/ivivehiclefunctions/window_qml/WindowItem.qml
index 94be284..a164d25 100644
--- a/examples/ivivehiclefunctions/window_qml/WindowItem.qml
+++ b/examples/ivivehiclefunctions/window_qml/WindowItem.qml
@@ -52,10 +52,9 @@
****************************************************************************/
import QtQuick 2.4
-import QtQuick.Controls 1.3
+import QtQuick.Controls 2.15
import QtQuick.Window 2.2
import QtQuick.Layouts 1.1
-import QtQuick.Dialogs 1.2
import QtIvi.VehicleFunctions 1.0
@@ -109,13 +108,13 @@ GroupBox {
}
}
- ExclusiveGroup {
+ ButtonGroup {
id: blindGroup
}
RadioButton {
text: "Open"
- exclusiveGroup: blindGroup
+ ButtonGroup.group: blindGroup
checked: zone.blindMode === WindowControl.BlindOpen
onCheckedChanged: {
if (checked)
@@ -125,7 +124,7 @@ GroupBox {
RadioButton {
text: "Closed"
- exclusiveGroup: blindGroup
+ ButtonGroup.group: blindGroup
checked: zone.blindMode === WindowControl.BlindClosed
onCheckedChanged: {
if (checked)
@@ -135,7 +134,7 @@ GroupBox {
RadioButton {
text: "Automatic"
- exclusiveGroup: blindGroup
+ ButtonGroup.group: blindGroup
checked: zone.blindMode === WindowControl.AutoBlind
onCheckedChanged: {
if (checked)
@@ -161,13 +160,13 @@ GroupBox {
}
}
- ExclusiveGroup {
+ ButtonGroup {
id: heaterGroup
}
RadioButton {
text: "On"
- exclusiveGroup: heaterGroup
+ ButtonGroup.group: heaterGroup
checked: zone.heaterMode === WindowControl.HeaterOn
onCheckedChanged: {
if (checked)
@@ -177,7 +176,7 @@ GroupBox {
RadioButton {
text: "Off"
- exclusiveGroup: heaterGroup
+ ButtonGroup.group: heaterGroup
checked: zone.heaterMode === WindowControl.HeaterOff
onCheckedChanged: {
if (checked)
@@ -187,7 +186,7 @@ GroupBox {
RadioButton {
text: "Automatic"
- exclusiveGroup: heaterGroup
+ ButtonGroup.group: heaterGroup
checked: zone.heaterMode === WindowControl.AutoHeater
onCheckedChanged: {
if (checked)