diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2018-05-24 09:59:32 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2018-05-24 09:59:32 +0200 |
commit | df28185017d44c95b25322fd9da007a3f04c99e9 (patch) | |
tree | b820649b6c8aa94671639e3db4270b1e4ced8985 | |
parent | 49d69d42cbf626de8ad0256dc8ad4b916131e34c (diff) | |
download | kube-df28185017d44c95b25322fd9da007a3f04c99e9.tar.gz kube-df28185017d44c95b25322fd9da007a3f04c99e9.zip |
initial todo layout
-rw-r--r-- | views/todo/qml/View.qml | 46 |
1 files changed, 37 insertions, 9 deletions
diff --git a/views/todo/qml/View.qml b/views/todo/qml/View.qml index ef3cc0bd..e19e2fb0 100644 --- a/views/todo/qml/View.qml +++ b/views/todo/qml/View.qml | |||
@@ -16,18 +16,46 @@ | |||
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.Layouts 1.1 | 20 | import QtQuick.Layouts 1.2 |
21 | import QtQuick.Controls 2.0 | 21 | |
22 | import org.kube.framework 1.0 as Kube | 22 | import org.kube.framework 1.0 as Kube |
23 | 23 | ||
24 | |||
24 | FocusScope { | 25 | FocusScope { |
25 | id: root | 26 | id: root |
26 | 27 | ||
27 | Kube.Label { | 28 | RowLayout { |
28 | anchors { | 29 | anchors.fill: parent |
29 | centerIn: parent | 30 | |
30 | } | 31 | Rectangle { |
31 | text: "ToDo" | 32 | width: Kube.Units.gridUnit * 10 |
32 | } | 33 | Layout.fillHeight: parent.height |
34 | color: Kube.Colors.textColor | ||
35 | |||
36 | Kube.PositiveButton { | ||
37 | id: newTaskButton | ||
38 | objectName: "newTaskButton" | ||
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 Task") | ||
48 | onClicked: {} | ||
49 | } | ||
50 | } | ||
51 | |||
52 | Rectangle { | ||
53 | } | ||
54 | } | ||
33 | } | 55 | } |
56 | |||
57 | |||
58 | |||
59 | |||
60 | |||
61 | |||