on xenial help sign in
get rid of QtQuick.Controls, no available on the phone
commit3f8ef3c633ccec7ddc439b202e392e254a614a16 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateMon 31 Aug 2015, 16:31 (11 years ago) parent5c6e1d8
1 file changed+15−17
qml/Wizard/Pages/40-location.qml+15−17
qml/Wizard/Pages/40-location.qml+15−17
@@ -15,7 +15,6 @@
1515 */
1616
1717import QtQuick 2.3
18−import QtQuick.Controls 1.3
1918import AccountsService 0.1
2019import QMenuModel 0.1 as QMenuModel
2120import Qt.labs.folderlistmodel 2.1
@@ -51,16 +50,6 @@ LocalComponents.Page {
5150 Component.onCompleted: start()
5251 }
5352
54− Component.onCompleted: {
55− group.bindCheckable(hereCheckLabel)
56− group.bindCheckable(gpsCheckLabel)
57− group.bindCheckable(nopeCheckLabel)
58− }
59−
60− ExclusiveGroup {
61− id: group
62− }
63−
6453 Item {
6554 id: column
6655 anchors.fill: content
@@ -84,8 +73,11 @@ LocalComponents.Page {
8473 MouseArea {
8574 anchors.fill: parent
8675 onClicked: {
87− if (!hereCheckLabel.checked)
88− hereCheckLabel.checked = true
76+ if (!hereCheckLabel.checked) {
77+ hereCheckLabel.checked = true;
78+ gpsCheckLabel.checked = false;
79+ nopeCheckLabel.checked = false;
80+ }
8981 }
9082 }
9183 }
@@ -137,8 +129,11 @@ LocalComponents.Page {
137129 MouseArea {
138130 anchors.fill: parent
139131 onClicked: {
140− if (!gpsCheckLabel.checked)
141− gpsCheckLabel.checked = true
132+ if (!gpsCheckLabel.checked) {
133+ hereCheckLabel.checked = false;
134+ gpsCheckLabel.checked = true;
135+ nopeCheckLabel.checked = false;
136+ }
142137 }
143138 }
144139 }
@@ -171,8 +166,11 @@ LocalComponents.Page {
171166 MouseArea {
172167 anchors.fill: parent
173168 onClicked: {
174− if (!nopeCheckLabel.checked)
175− nopeCheckLabel.checked = true
169+ if (!nopeCheckLabel.checked) {
170+ hereCheckLabel.checked = false;
171+ gpsCheckLabel.checked = false;
172+ nopeCheckLabel.checked = true;
173+ }
176174 }
177175 }
178176 }