From 12c24448cd42f5ab4f64b75352058ce0dc5a3c49 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Fri, 2 Mar 2018 11:02:39 +0100 Subject: add some lines to the calendar so it is easier to spot the time --- views/calendar/qml/View.qml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/views/calendar/qml/View.qml b/views/calendar/qml/View.qml index 704b46f7..0d86313d 100644 --- a/views/calendar/qml/View.qml +++ b/views/calendar/qml/View.qml @@ -36,11 +36,12 @@ FocusScope { width: Kube.Units.gridUnit * 7 * 7 + Kube.Units.gridUnit * 2 height: Kube.Units.gridUnit * 27 + //BEGIN day labels DayOfWeekRow { id: dayLabels anchors.right: parent.right spacing: 0 - locale: Qt.locale("de") + locale: Qt.locale("en_GB") delegate: Rectangle { width: Kube.Units.gridUnit * 7 @@ -60,8 +61,9 @@ FocusScope { } } } + //END day labels - + //BEGIN daylong events Rectangle { id: daylong @@ -109,6 +111,7 @@ FocusScope { } } } + //END daylong events Flickable { id: mainWeekViewer @@ -135,10 +138,11 @@ FocusScope { spacing: 0 + //BEGIN time labels Column { anchors.bottom: parent.bottom Repeater { - model: ["0:00","1:00","2:00","3:00","4:00","5:00","6:00","7:00","8:00","9:00","10:00","11:00","12:00","13:00","14:00","15:00","16:00","17:00","18:00","19:00","20:00","21:00","22:00","23:00"] + model: ["1:00","2:00","3:00","4:00","5:00","6:00","7:00","8:00","9:00","10:00","11:00","12:00","13:00","14:00","15:00","16:00","17:00","18:00","19:00","20:00","21:00","22:00","23:00","0:00"] delegate: Item { height: Kube.Units.gridUnit * 2 width: Kube.Units.gridUnit * 2 @@ -147,12 +151,14 @@ FocusScope { anchors { right: parent.right rightMargin: Kube.Units.smallSpacing + bottom: parent.bottom } text: model.modelData } } } } + //END time labels Repeater { model: WeekEvents{} @@ -168,6 +174,20 @@ FocusScope { border.color: "lightgrey" color: Kube.Colors.viewBackgroundColor + Column { + anchors.fill: parent + Repeater { + model: 24 + delegate: Rectangle { + height: Kube.Units.gridUnit * 4 + width: parent.width + color: "transparent" + border.width:1 + border.color: "lightgrey" + } + } + } + Repeater { model: parent.events @@ -207,7 +227,6 @@ FocusScope { eventDelegate.z = eventDelegate.z - 100 } - } } } -- cgit v1.2.3