-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreateWorldDialog.qml
More file actions
58 lines (45 loc) · 960 Bytes
/
Copy pathCreateWorldDialog.qml
File metadata and controls
58 lines (45 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import QtQuick
import QtQuick.Controls
Dialog
{
property alias grid: grid
property int worldWidth: widthSpinBox.value
property int worldHeight: heightSpinBox.value
modal: true
title: qsTr("Create a new world")
standardButtons: Dialog.Ok | Dialog.Cancel
Grid
{
id: grid
columns: 2
rows: 2
Label
{
id: widthLabel
text: qsTr("Width:")
}
SpinBox
{
id: widthSpinBox
editable: true
from: 1
to: 100
stepSize: 1
value: 30
}
Label
{
id: heightLabel
text: qsTr("Height:")
}
SpinBox
{
id: heightSpinBox
editable: true
from: widthSpinBox.from
to: widthSpinBox.to
stepSize: widthSpinBox.stepSize
value: 30
}
}
}