From df28185017d44c95b25322fd9da007a3f04c99e9 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Thu, 24 May 2018 09:59:32 +0200 Subject: initial todo layout --- views/todo/qml/View.qml | 46 +++++++++++++++++++++++++++++++++++++--------- 1 file 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 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import QtQuick 2.4 -import QtQuick.Layouts 1.1 -import QtQuick.Controls 2.0 +import QtQuick 2.9 +import QtQuick.Layouts 1.2 + import org.kube.framework 1.0 as Kube + FocusScope { id: root - Kube.Label { - anchors { - centerIn: parent - } - text: "ToDo" - } + RowLayout { + anchors.fill: parent + + Rectangle { + width: Kube.Units.gridUnit * 10 + Layout.fillHeight: parent.height + color: Kube.Colors.textColor + + Kube.PositiveButton { + id: newTaskButton + objectName: "newTaskButton" + + anchors { + top: parent.top + left: parent.left + right: parent.right + margins: Kube.Units.largeSpacing + } + focus: true + text: qsTr("New Task") + onClicked: {} + } + } + + Rectangle { + } + } } + + + + + + -- cgit v1.2.3