summaryrefslogtreecommitdiffstats
path: root/views/calendar/qml/View.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-11 07:28:04 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-11 07:37:02 +0200
commit2525b7cb66877479df393b84bba1bd4a76146b45 (patch)
tree483cd784b6a0ea5da9db8436e113de9b00d8a70c /views/calendar/qml/View.qml
parent9d17b3dc4628215cb2fb9c83fe71874f262d057d (diff)
downloadkube-2525b7cb66877479df393b84bba1bd4a76146b45.tar.gz
kube-2525b7cb66877479df393b84bba1bd4a76146b45.zip
Make the calendar work with the current time
Diffstat (limited to 'views/calendar/qml/View.qml')
-rw-r--r--views/calendar/qml/View.qml8
1 files changed, 6 insertions, 2 deletions
diff --git a/views/calendar/qml/View.qml b/views/calendar/qml/View.qml
index 434c92d1..f870a850 100644
--- a/views/calendar/qml/View.qml
+++ b/views/calendar/qml/View.qml
@@ -26,6 +26,9 @@ import org.kube.framework 1.0 as Kube
26RowLayout { 26RowLayout {
27 id: root 27 id: root
28 28
29 //TODO update every second
30 property date currentDate: new Date()
31
29 anchors.fill: parent 32 anchors.fill: parent
30 33
31 Rectangle { 34 Rectangle {
@@ -100,7 +103,8 @@ RowLayout {
100 } 103 }
101 104
102 WeekView { 105 WeekView {
103 Layout.fillHeight: parent.height 106 Layout.fillHeight: true
104 Layout.fillWidth: parent.height 107 Layout.fillWidth: true
108 currentDate: root.currentDate
105 } 109 }
106} 110}