diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2018-04-19 10:00:32 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2018-04-19 10:00:32 +0200 |
commit | 36e16798b4063e9174b21e7f70a5acc868a7c931 (patch) | |
tree | 507deeecda8508349d3e6973adad160361642ba0 /views | |
parent | deb27d4e865ffd7dc15a482db747e53f3247f6e8 (diff) | |
download | kube-36e16798b4063e9174b21e7f70a5acc868a7c931.tar.gz kube-36e16798b4063e9174b21e7f70a5acc868a7c931.zip |
inital calendar view layout
Diffstat (limited to 'views')
-rw-r--r-- | views/calendar/qml/View.qml | 60 |
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 | ||
19 | import QtQuick 2.4 | 19 | import QtQuick 2.9 |
20 | import QtQuick.Controls 1.3 as Controls1 | ||
21 | import QtQuick.Layouts 1.2 | ||
22 | |||
23 | import org.kube.framework 1.0 as Kube | ||
24 | |||
25 | |||
26 | Controls1.SplitView { | ||
27 | id: root | ||
20 | 28 | ||
21 | WeekView { | ||
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 | } | ||