diff options
Diffstat (limited to 'views/calendar')
-rw-r--r-- | views/calendar/qml/View.qml | 18 | ||||
-rw-r--r-- | views/calendar/qml/WeekEvents.qml | 24 |
2 files changed, 39 insertions, 3 deletions
diff --git a/views/calendar/qml/View.qml b/views/calendar/qml/View.qml index ac82ec70..704b46f7 100644 --- a/views/calendar/qml/View.qml +++ b/views/calendar/qml/View.qml | |||
@@ -26,7 +26,6 @@ import org.kube.framework 1.0 as Kube | |||
26 | FocusScope { | 26 | FocusScope { |
27 | id: root | 27 | id: root |
28 | 28 | ||
29 | |||
30 | Item { | 29 | Item { |
31 | anchors { | 30 | anchors { |
32 | top: parent.top | 31 | top: parent.top |
@@ -173,6 +172,7 @@ FocusScope { | |||
173 | model: parent.events | 172 | model: parent.events |
174 | 173 | ||
175 | delegate: Rectangle { | 174 | delegate: Rectangle { |
175 | id: eventDelegate | ||
176 | anchors { | 176 | anchors { |
177 | right: parent.right | 177 | right: parent.right |
178 | rightMargin: Kube.Units.smallSpacing | 178 | rightMargin: Kube.Units.smallSpacing |
@@ -194,11 +194,25 @@ FocusScope { | |||
194 | text: model.text | 194 | text: model.text |
195 | color: Kube.Colors.highlightedTextColor | 195 | color: Kube.Colors.highlightedTextColor |
196 | } | 196 | } |
197 | |||
198 | MouseArea { | ||
199 | anchors.fill: parent | ||
200 | |||
201 | hoverEnabled: true | ||
202 | |||
203 | onEntered: { | ||
204 | eventDelegate.z = eventDelegate.z + 100 | ||
205 | } | ||
206 | onExited: { | ||
207 | eventDelegate.z = eventDelegate.z - 100 | ||
208 | |||
209 | } | ||
210 | |||
211 | } | ||
197 | } | 212 | } |
198 | } | 213 | } |
199 | } | 214 | } |
200 | } | 215 | } |
201 | |||
202 | } | 216 | } |
203 | } | 217 | } |
204 | } | 218 | } |
diff --git a/views/calendar/qml/WeekEvents.qml b/views/calendar/qml/WeekEvents.qml index c8a420e0..005fb19e 100644 --- a/views/calendar/qml/WeekEvents.qml +++ b/views/calendar/qml/WeekEvents.qml | |||
@@ -63,7 +63,29 @@ ListModel { | |||
63 | ] | 63 | ] |
64 | } | 64 | } |
65 | ListElement { | 65 | ListElement { |
66 | events: [] | 66 | events: [ |
67 | ListElement { | ||
68 | color: "#134bab" | ||
69 | starts: 8 | ||
70 | duration: 5 | ||
71 | indention: 0 | ||
72 | text: "Meeting" | ||
73 | }, | ||
74 | ListElement { | ||
75 | color: "#af1a6a" | ||
76 | starts: 8 | ||
77 | duration: 4 | ||
78 | indention: 1 | ||
79 | text: "Meeting2" | ||
80 | }, | ||
81 | ListElement { | ||
82 | color: "#af1a6a" | ||
83 | starts: 9 | ||
84 | duration: 7 | ||
85 | indention: 2 | ||
86 | text: "Meeting2" | ||
87 | } | ||
88 | ] | ||
67 | } | 89 | } |
68 | ListElement { | 90 | ListElement { |
69 | events: [] | 91 | events: [] |