diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-01 11:39:41 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-01 11:39:41 +0200 |
commit | 1f24d911cae441b6b47e296aae31750686fb173f (patch) | |
tree | 24de60a8aa8be468549c5a57177c4e936df4097e | |
parent | 69c2e873e74727526cf197ab4a06b368a1d820ec (diff) | |
download | kube-1f24d911cae441b6b47e296aae31750686fb173f.tar.gz kube-1f24d911cae441b6b47e296aae31750686fb173f.zip |
Update the current time periodically
-rw-r--r-- | views/calendar/qml/View.qml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/views/calendar/qml/View.qml b/views/calendar/qml/View.qml index 5efda663..8a166c47 100644 --- a/views/calendar/qml/View.qml +++ b/views/calendar/qml/View.qml | |||
@@ -26,9 +26,13 @@ import org.kube.framework 1.0 as Kube | |||
26 | RowLayout { | 26 | RowLayout { |
27 | id: root | 27 | id: root |
28 | 28 | ||
29 | //TODO update every second | ||
30 | property date currentDate: new Date() | 29 | property date currentDate: new Date() |
31 | 30 | ||
31 | Timer { | ||
32 | interval: 2000; running: true; repeat: true | ||
33 | onTriggered: root.currentDate = new Date() | ||
34 | } | ||
35 | |||
32 | anchors.fill: parent | 36 | anchors.fill: parent |
33 | 37 | ||
34 | StackView.onActivated: { | 38 | StackView.onActivated: { |