diff options
Diffstat (limited to 'views/calendar/qml/WeekView.qml')
-rw-r--r-- | views/calendar/qml/WeekView.qml | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/views/calendar/qml/WeekView.qml b/views/calendar/qml/WeekView.qml index c8d0ab7b..868e7ee9 100644 --- a/views/calendar/qml/WeekView.qml +++ b/views/calendar/qml/WeekView.qml | |||
@@ -192,9 +192,10 @@ FocusScope { | |||
192 | length: 7 | 192 | length: 7 |
193 | } | 193 | } |
194 | delegate: Rectangle { | 194 | delegate: Rectangle { |
195 | id: day | 195 | id: dayDelegate |
196 | 196 | ||
197 | property var events: model.events | 197 | property var events: model.events |
198 | property var date: model.date | ||
198 | 199 | ||
199 | width: root.dayWidth | 200 | width: root.dayWidth |
200 | height: root.hourHeight * 24 | 201 | height: root.hourHeight * 24 |
@@ -285,6 +286,27 @@ FocusScope { | |||
285 | } | 286 | } |
286 | } | 287 | } |
287 | 288 | ||
289 | Rectangle { | ||
290 | id: currentTimeLine | ||
291 | anchors { | ||
292 | right: parent.right | ||
293 | left: parent.left | ||
294 | } | ||
295 | y: root.hourHeight * root.currentDate.getHours() + root.hourHeight / 60 * root.currentDate.getMinutes() | ||
296 | height: 2 | ||
297 | color: Kube.Colors.plasmaBlue | ||
298 | visible: root.currentDate.getDate() == dayDelegate.date.getDate() | ||
299 | opacity: 0.8 | ||
300 | } | ||
301 | |||
302 | //Dimm days in the past | ||
303 | Rectangle { | ||
304 | anchors.fill: parent | ||
305 | color: Kube.Colors.buttonColor | ||
306 | opacity: 0.4 | ||
307 | visible: root.currentDate.getDate() > dayDelegate.date.getDate() | ||
308 | } | ||
309 | |||
288 | DropArea { | 310 | DropArea { |
289 | anchors.fill: parent | 311 | anchors.fill: parent |
290 | 312 | ||