summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--views/calendar/qml/View.qml60
1 files changed, 57 insertions, 3 deletions
diff --git a/views/calendar/qml/View.qml b/views/calendar/qml/View.qml
index dfe86c13..faad7f89 100644
--- a/views/calendar/qml/View.qml
+++ b/views/calendar/qml/View.qml
@@ -16,9 +16,63 @@
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */ 17 */
18 18
19import QtQuick 2.4 19import QtQuick 2.9
20import QtQuick.Controls 1.3 as Controls1
21import QtQuick.Layouts 1.2
22
23import org.kube.framework 1.0 as Kube
24
25
26Controls1.SplitView {
27 id: root
20 28
21WeekView {
22 anchors.fill: parent 29 anchors.fill: parent
23}
24 30
31 Rectangle {
32 width: Kube.Units.gridUnit * 10
33 Layout.fillHeight: parent.height
34 color: Kube.Colors.textColor
35
36 Kube.PositiveButton {
37 id: newEventButton
38 objectName: "newEventButton"
39
40 anchors {
41 top: parent.top
42 left: parent.left
43 right: parent.right
44 margins: Kube.Units.largeSpacing
45 }
46 focus: true
47 text: qsTr("New Event")
48 onClicked: {}
49 }
50
51 Column {
52 anchors {
53 top: newEventButton.bottom
54 left: newEventButton.left
55 topMargin: Kube.Units.largeSpacing
56 }
57
58 width: parent.width
59 spacing: Kube.Units.smallSpacing
60
61 Kube.Label {
62 text: "Week"
63 color: Kube.Colors.highlightedTextColor
64 }
65
66 Kube.Label {
67 text: "Month"
68 color: Kube.Colors.highlightedTextColor
69 }
70
71 }
72 }
73
74 WeekView {
75 Layout.fillHeight: parent.height
76 Layout.fillWidth: parent.height
77 }
78}