on xenial help sign in
get rid of QtQuick.Controls, no available on the phone
3f8ef3cLukáš Tinkl
qml/Wizard/Pages/40-location.qml+15−17
@@ -15,7 +15,6 @@
15 */
15 */
16
16
17import QtQuick 2.3
17import QtQuick 2.3
18−import QtQuick.Controls 1.3
19import AccountsService 0.1
18import AccountsService 0.1
20import QMenuModel 0.1 as QMenuModel
19import QMenuModel 0.1 as QMenuModel
21import Qt.labs.folderlistmodel 2.1
20import Qt.labs.folderlistmodel 2.1
@@ -51,16 +50,6 @@ LocalComponents.Page {
51 Component.onCompleted: start()
50 Component.onCompleted: start()
52 }
51 }
53
52
54− Component.onCompleted: {
55− group.bindCheckable(hereCheckLabel)
56− group.bindCheckable(gpsCheckLabel)
57− group.bindCheckable(nopeCheckLabel)
58− }
59−
60− ExclusiveGroup {
61− id: group
62− }
63−
64 Item {
53 Item {
65 id: column
54 id: column
66 anchors.fill: content
55 anchors.fill: content
@@ -84,8 +73,11 @@ LocalComponents.Page {
84 MouseArea {
73 MouseArea {
85 anchors.fill: parent
74 anchors.fill: parent
86 onClicked: {
75 onClicked: {
87− if (!hereCheckLabel.checked)
76+ if (!hereCheckLabel.checked) {
88− hereCheckLabel.checked = true
77+ hereCheckLabel.checked = true;
78+ gpsCheckLabel.checked = false;
79+ nopeCheckLabel.checked = false;
80+ }
89 }
81 }
90 }
82 }
91 }
83 }
@@ -137,8 +129,11 @@ LocalComponents.Page {
137 MouseArea {
129 MouseArea {
138 anchors.fill: parent
130 anchors.fill: parent
139 onClicked: {
131 onClicked: {
140− if (!gpsCheckLabel.checked)
132+ if (!gpsCheckLabel.checked) {
133+ hereCheckLabel.checked = false;
141− gpsCheckLabel.checked = true
134+ gpsCheckLabel.checked = true;
135+ nopeCheckLabel.checked = false;
136+ }
142 }
137 }
143 }
138 }
144 }
139 }
@@ -171,8 +166,11 @@ LocalComponents.Page {
171 MouseArea {
166 MouseArea {
172 anchors.fill: parent
167 anchors.fill: parent
173 onClicked: {
168 onClicked: {
174− if (!nopeCheckLabel.checked)
169+ if (!nopeCheckLabel.checked) {
170+ hereCheckLabel.checked = false;
171+ gpsCheckLabel.checked = false;
175− nopeCheckLabel.checked = true
172+ nopeCheckLabel.checked = true;
173+ }
176 }
174 }
177 }
175 }
178 }
176 }