Changeset View
Changeset View
Standalone View
Standalone View
views/calendar/qml/WeekView.qml
Show First 20 Lines • Show All 206 Lines • ▼ Show 20 Line(s) | 198 | State { | |||
---|---|---|---|---|---|
207 | PropertyChanges {target: eventDelegate; width: Kube.Units.gridUnit * 7 - Kube.Units.smallSpacing * 2} | 207 | PropertyChanges {target: eventDelegate; width: Kube.Units.gridUnit * 7 - Kube.Units.smallSpacing * 2} | ||
208 | } | 208 | } | ||
209 | ] | 209 | ] | ||
210 | 210 | | |||
211 | anchors { | 211 | anchors { | ||
212 | right: parent.right | 212 | right: parent.right | ||
213 | rightMargin: Kube.Units.smallSpacing | 213 | rightMargin: Kube.Units.smallSpacing | ||
214 | } | 214 | } | ||
215 | width: Kube.Units.gridUnit * 7 - Kube.Units.smallSpacing * 2 - Kube.Units.gridUnit * model.indention | 215 | width: Kube.Units.gridUnit * 7 - Kube.Units.smallSpacing * 2 - Kube.Units.gridUnit * model.modelData.indention | ||
216 | height: Kube.Units.gridUnit * model.duration | 216 | height: Kube.Units.gridUnit * model.modelData.duration | ||
217 | y: Kube.Units.gridUnit * model.starts | 217 | y: Kube.Units.gridUnit * model.modelData.starts | ||
218 | x: Kube.Units.gridUnit * model.indention | 218 | x: Kube.Units.gridUnit * model.modelData.indention | ||
219 | 219 | | |||
220 | color: model.color | 220 | color: model.modelData.color | ||
221 | border.width: 1 | 221 | border.width: 1 | ||
222 | border.color: Kube.Colors.viewBackgroundColor | 222 | border.color: Kube.Colors.viewBackgroundColor | ||
223 | 223 | | |||
224 | Kube.Label { | 224 | Kube.Label { | ||
225 | anchors { | 225 | anchors { | ||
226 | left: parent.left | 226 | left: parent.left | ||
227 | leftMargin: Kube.Units.smallSpacing | 227 | leftMargin: Kube.Units.smallSpacing | ||
228 | } | 228 | } | ||
229 | text: model.text | 229 | text: model.modelData.text | ||
230 | color: Kube.Colors.highlightedTextColor | 230 | color: Kube.Colors.highlightedTextColor | ||
231 | } | 231 | } | ||
232 | 232 | | |||
233 | Drag.active: mouseArea.drag.active | 233 | Drag.active: mouseArea.drag.active | ||
234 | Drag.hotSpot.x: mouseArea.mouseX | 234 | Drag.hotSpot.x: mouseArea.mouseX | ||
235 | Drag.hotSpot.y: mouseArea.mouseY | 235 | Drag.hotSpot.y: mouseArea.mouseY | ||
236 | Drag.source: eventDelegate | 236 | Drag.source: eventDelegate | ||
237 | 237 | | |||
Show All 36 Lines |