diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2018-03-01 15:19:28 +0100 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2018-03-01 15:19:28 +0100 |
commit | d7fa14de0d4ffc6b0ae9529ea8bf84ede1d519fa (patch) | |
tree | 03207b340fa00000e42bf162035c883141a82360 /views/calendar/qml/View.qml | |
parent | 6220a14fa325aa5141adc78898f0063a72881972 (diff) | |
download | kube-d7fa14de0d4ffc6b0ae9529ea8bf84ede1d519fa.tar.gz kube-d7fa14de0d4ffc6b0ae9529ea8bf84ede1d519fa.zip |
add indention to overlaping events
Diffstat (limited to 'views/calendar/qml/View.qml')
-rw-r--r-- | views/calendar/qml/View.qml | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/views/calendar/qml/View.qml b/views/calendar/qml/View.qml index 1b72881d..a545f473 100644 --- a/views/calendar/qml/View.qml +++ b/views/calendar/qml/View.qml | |||
@@ -29,7 +29,6 @@ FocusScope { | |||
29 | property var month: Calendar.March | 29 | property var month: Calendar.March |
30 | property var year: 2017 | 30 | property var year: 2017 |
31 | 31 | ||
32 | |||
33 | Column { | 32 | Column { |
34 | anchors.centerIn: parent | 33 | anchors.centerIn: parent |
35 | 34 | ||
@@ -118,10 +117,15 @@ FocusScope { | |||
118 | model: parent.events | 117 | model: parent.events |
119 | 118 | ||
120 | delegate: Rectangle { | 119 | delegate: Rectangle { |
121 | anchors.horizontalCenter: parent.horizontalCenter | 120 | anchors { |
122 | width: parent.width - Kube.Units.smallSpacing * 2 | 121 | right: parent.right |
123 | height: Kube.Units.gridUnit * duration | 122 | rightMargin: Kube.Units.smallSpacing |
124 | y: Kube.Units.gridUnit * starts | 123 | } |
124 | width: parent.width - Kube.Units.smallSpacing * 2 - Kube.Units.gridUnit * model.indention | ||
125 | height: Kube.Units.gridUnit * model.duration | ||
126 | y: Kube.Units.gridUnit * model.starts | ||
127 | x: Kube.Units.gridUnit * model.indention | ||
128 | |||
125 | color: model.color | 129 | color: model.color |
126 | 130 | ||
127 | Kube.Label { | 131 | Kube.Label { |