blob: fc9cf78b1fbefad686f636ce0b3f290d851506b6 (
plain)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
|
import Qt 4.7
import Bauhaus 1.0
QWidget {
layout: QVBoxLayout {
topMargin: 0
bottomMargin: 0
leftMargin: 0
rightMargin: 0
spacing: 0
FlickableGroupBox {
}
GroupBox {
finished: finishedNotify;
caption: qsTr("Grid View")
layout: VerticalLayout {
IntEditor {
backendValue: backendValues.cacheBuffer
caption: qsTr("Cache")
toolTip: qsTr("Cache buffer")
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 1000;
}
IntEditor {
backendValue: backendValues.cellHeight
caption: qsTr("Cell height")
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 200;
}
IntEditor {
backendValue: backendValues.cellWidth
caption: qsTr("Cell width")
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 1000;
}
QWidget {
layout: HorizontalLayout {
Label {
text: qsTr("Flow")
}
ComboBox {
baseStateFlag: isBaseState
items : { ["LeftToRight", "TopToBottom"] }
currentText: backendValues.flow.value;
onItemsChanged: {
currentText = backendValues.flow.value;
}
backendValue: backendValues.flow
}
}
} //QWidget
IntEditor {
backendValue: backendValues.keyNavigationWraps
caption: qsTr("Resize wraps")
toolTip: qsTr("Determines whether the grid wraps key navigation.")
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 1000;
}
// Qt namespace enums not supported by the rewriter
// QWidget {
// layout: HorizontalLayout {
// Label {
// text: qsTr("Layout direction")
// }
// ComboBox {
// baseStateFlag: isBaseState
// items : { ["LeftToRight", "RightToLeft"] }
// currentText: backendValues.layoutDirection.value;
// onItemsChanged: {
// currentText = backendValues.layoutDirection.value;
// }
// backendValue: backendValues.layoutDirection
// }
// }
// } //QWidget
QWidget {
layout: HorizontalLayout {
Label {
text: qsTr("Snap mode")
toolTip: qsTr("Determines how the view scrolling will settle following a drag or flick.")
}
ComboBox {
baseStateFlag: isBaseState
items : { ["NoSnap", "SnapToRow", "SnapOneRow"] }
currentText: backendValues.snapMode.value;
onItemsChanged: {
currentText = backendValues.snapMode.value;
}
backendValue: backendValues.snapMode
}
}
} //QWidget
}
}
GroupBox {
finished: finishedNotify;
caption: qsTr("Grid View Highlight")
layout: VerticalLayout {
QWidget {
layout: HorizontalLayout {
Label {
text: qsTr("Range")
toolTip: qsTr("Highlight range")
}
ComboBox {
baseStateFlag: isBaseState
items : { ["NoHighlightRange", "ApplyRange", "StrictlyEnforceRange"] }
currentText: backendValues.highlightRangeMode.value;
onItemsChanged: {
currentText = backendValues.highlightRangeMode.value;
}
backendValue: backendValues.highlightRangeMode
}
}
} //QWidget
IntEditor {
backendValue: backendValues.highlightMoveDuration
caption: qsTr("Move duration")
toolTip: qsTr("Move animation duration of the highlight delegate.")
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 1000;
}
IntEditor {
backendValue: backendValues.highlightMoveSpeed
caption: qsTr("Move speed")
toolTip: qsTr("Move animation speed of the highlight delegate.")
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 1000;
}
IntEditor {
backendValue: backendValues.preferredHighlightBegin
caption: qsTr("Preferred begin")
toolTip: qsTr("Preferred highlight begin - must be smaller than Preferred end.")
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 1000;
}
IntEditor {
backendValue: backendValues.preferredHighlightEnd
caption: qsTr("Preferred end")
toolTip: qsTr("Preferred highlight end - must be larger than Preferred begin.")
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
maximumValue: 1000;
}
QWidget { // 1
layout: HorizontalLayout {
Label {
text: qsTr("Follows current")
}
CheckBox {
backendValue: backendValues.highlightFollowsCurrentItem
toolTip: qsTr("Determines whether the highlight is managed by the view.")
baseStateFlag: isBaseState;
checkable: True
}
}
}
}
}
QScrollArea {
}
}
}
|