14
14
* limitations under the License.
15
15
*
16
16
*/
17
- import QtQuick 2.9
18
- import QtQuick.Controls 2.2
19
- import QtQuick.Layouts 1.3
20
- import QtQuick.Window 2.2
21
- import QtQuick.Dialogs 1.0
17
+ import QtQuick
18
+ import QtQuick.Controls
19
+ import QtQuick.Layouts
20
+ import QtQuick.Window
21
+ import QtQuick.Dialogs
22
22
import "qrc:/qml"
23
23
24
24
Dialog {
@@ -135,7 +135,7 @@ Dialog {
135
135
136
136
GzSpinBox {
137
137
visible: ! cardPane .anchored
138
- maximumValue : cardPane .parent ? cardPane .parent .width - cardPane .width : minSize
138
+ to : cardPane .parent ? cardPane .parent .width - cardPane .width : from
139
139
onVisibleChanged: value = cardPane .x
140
140
onValueChanged: {
141
141
cardPane .x = value;
@@ -147,7 +147,7 @@ Dialog {
147
147
}
148
148
GzSpinBox {
149
149
visible: ! cardPane .anchored
150
- maximumValue : cardPane .parent ? cardPane .parent .height - cardPane .height : minSize
150
+ to : cardPane .parent ? cardPane .parent .height - cardPane .height : from
151
151
onVisibleChanged: value = cardPane .y
152
152
onValueChanged: {
153
153
cardPane .y = value;
@@ -159,7 +159,7 @@ Dialog {
159
159
}
160
160
GzSpinBox {
161
161
visible: ! cardPane .anchored
162
- maximumValue : 10000
162
+ to : 10000
163
163
onVisibleChanged: value = cardPane .z
164
164
onValueChanged: {
165
165
cardPane .z = value;
@@ -177,7 +177,7 @@ Dialog {
177
177
text: " "
178
178
}
179
179
GzSpinBox {
180
- maximumValue : cardPane .parent ? cardPane .parent .width : minSize
180
+ to : cardPane .parent ? cardPane .parent .width : from
181
181
onVisibleChanged: {
182
182
if (cardPane)
183
183
value = cardPane .width
@@ -190,7 +190,8 @@ Dialog {
190
190
text: " Width"
191
191
}
192
192
GzSpinBox {
193
- maximumValue: cardPane .parent ? cardPane .parent .height : minSize
193
+ to: cardPane .parent ? cardPane .parent .height : from
194
+
194
195
onVisibleChanged: {
195
196
if (cardPane)
196
197
value = cardPane .height
@@ -208,7 +209,7 @@ Dialog {
208
209
ColorDialog {
209
210
id: colorDialog
210
211
title: " Please choose a color"
211
- showAlphaChannel : true
212
+ options : [ ColorDialog . ShowAlphaChannel ]
212
213
onAccepted: {
213
214
content .color = colorDialog .color
214
215
bgColor .color = colorDialog .color
0 commit comments