summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-08-01 21:31:39 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-08-01 21:31:39 +0200
commita18d3efd4f54885af3755c89ae5a44839549d5f2 (patch)
tree88d2275b40f08859a010b5a1e8ab20bf354d7e04
parent053c0fb365ef09bb1736c6503b65f7272be97335 (diff)
downloadkube-a18d3efd4f54885af3755c89ae5a44839549d5f2.tar.gz
kube-a18d3efd4f54885af3755c89ae5a44839549d5f2.zip
No date hardcoding
-rw-r--r--views/calendar/qml/DaylongEvents.qml2
-rw-r--r--views/calendar/qml/WeekView.qml5
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
3import org.kube.framework 1.0 as Kube 3import org.kube.framework 1.0 as Kube
4 4
5Kube.DayLongEventModel { 5Kube.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