diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-01 21:31:39 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-01 21:31:39 +0200 |
commit | a18d3efd4f54885af3755c89ae5a44839549d5f2 (patch) | |
tree | 88d2275b40f08859a010b5a1e8ab20bf354d7e04 | |
parent | 053c0fb365ef09bb1736c6503b65f7272be97335 (diff) | |
download | kube-a18d3efd4f54885af3755c89ae5a44839549d5f2.tar.gz kube-a18d3efd4f54885af3755c89ae5a44839549d5f2.zip |
No date hardcoding
-rw-r--r-- | views/calendar/qml/DaylongEvents.qml | 2 | ||||
-rw-r--r-- | views/calendar/qml/WeekView.qml | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/views/calendar/qml/DaylongEvents.qml b/views/calendar/qml/DaylongEvents.qml index a07b66dd..a338cf3b 100644 --- a/views/calendar/qml/DaylongEvents.qml +++ b/views/calendar/qml/DaylongEvents.qml | |||
@@ -3,6 +3,4 @@ import QtQuick 2.7 | |||
3 | import org.kube.framework 1.0 as Kube | 3 | import org.kube.framework 1.0 as Kube |
4 | 4 | ||
5 | Kube.DayLongEventModel { | 5 | Kube.DayLongEventModel { |
6 | start: "2018-04-09" | ||
7 | length: 7 | ||
8 | } | 6 | } |
diff --git a/views/calendar/qml/WeekView.qml b/views/calendar/qml/WeekView.qml index 658d8e96..73436bc9 100644 --- a/views/calendar/qml/WeekView.qml +++ b/views/calendar/qml/WeekView.qml | |||
@@ -114,7 +114,10 @@ FocusScope { | |||
114 | 114 | ||
115 | clip: true | 115 | clip: true |
116 | 116 | ||
117 | model: DaylongEvents {} | 117 | model: DaylongEvents { |
118 | start: root.startDate | ||
119 | length: root.daysToShow | ||
120 | } | ||
118 | 121 | ||
119 | delegate: Item { | 122 | delegate: Item { |
120 | height: Kube.Units.gridUnit + 2 // +2 to make good for the white border | 123 | height: Kube.Units.gridUnit + 2 // +2 to make good for the white border |