summaryrefslogtreecommitdiffstats
path: root/views/calendar/qml/WeekView.qml
diff options
context:
space:
mode:
authorRémi Nicole <nicole@kolabsystems.com>2018-04-17 14:30:27 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-04-17 14:32:29 +0200
commitb8d76329bced92d712185e5588dfd6061e8fe0f6 (patch)
treeaf37569d19c112549ab1e6ba0b94fe9c2d83c4fc /views/calendar/qml/WeekView.qml
parentafaaeb6dc16315c78091653a2662be41781ddfd3 (diff)
downloadkube-b8d76329bced92d712185e5588dfd6061e8fe0f6.tar.gz
kube-b8d76329bced92d712185e5588dfd6061e8fe0f6.zip
Implement PeriodDayEventModel
Summary: Implements a model to load events. When finished, should fix T8225 TODO: - Use the parent / children model in qml, instead of relying on the ".events" attribute (using DelegateModel I think) Reviewers: cmollekopf Tags: #kube Maniphest Tasks: T8225 Differential Revision: https://phabricator.kde.org/D12089
Diffstat (limited to 'views/calendar/qml/WeekView.qml')
-rw-r--r--views/calendar/qml/WeekView.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/views/calendar/qml/WeekView.qml b/views/calendar/qml/WeekView.qml
index 8eef3a92..877500c5 100644
--- a/views/calendar/qml/WeekView.qml
+++ b/views/calendar/qml/WeekView.qml
@@ -212,12 +212,12 @@ FocusScope {
212 right: parent.right 212 right: parent.right
213 rightMargin: Kube.Units.smallSpacing 213 rightMargin: Kube.Units.smallSpacing
214 } 214 }
215 width: Kube.Units.gridUnit * 7 - Kube.Units.smallSpacing * 2 - Kube.Units.gridUnit * model.indention 215 width: Kube.Units.gridUnit * 7 - Kube.Units.smallSpacing * 2 - Kube.Units.gridUnit * model.modelData.indention
216 height: Kube.Units.gridUnit * model.duration 216 height: Kube.Units.gridUnit * model.modelData.duration
217 y: Kube.Units.gridUnit * model.starts 217 y: Kube.Units.gridUnit * model.modelData.starts
218 x: Kube.Units.gridUnit * model.indention 218 x: Kube.Units.gridUnit * model.modelData.indention
219 219
220 color: model.color 220 color: model.modelData.color
221 border.width: 1 221 border.width: 1
222 border.color: Kube.Colors.viewBackgroundColor 222 border.color: Kube.Colors.viewBackgroundColor
223 223
@@ -226,7 +226,7 @@ FocusScope {
226 left: parent.left 226 left: parent.left
227 leftMargin: Kube.Units.smallSpacing 227 leftMargin: Kube.Units.smallSpacing
228 } 228 }
229 text: model.text 229 text: model.modelData.text
230 color: Kube.Colors.highlightedTextColor 230 color: Kube.Colors.highlightedTextColor
231 } 231 }
232 232