diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-21 09:04:46 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-21 09:04:46 +0800 |
commit | 061b0b205ea84a008bb52ef4f13dea77d9a37952 (patch) | |
tree | f2534e1055f3c0c8c002d2b9fadb221380934a65 /forms | |
parent | 1c2e0bdae47d142111abe96eabf39dceb8ea3051 (diff) |
Move task related forms to the new forms directory
Diffstat (limited to 'forms')
-rw-r--r-- | forms/TaskForm.ui.qml | 41 | ||||
-rw-r--r-- | forms/TaskListForm.ui.qml | 20 |
2 files changed, 61 insertions, 0 deletions
diff --git a/forms/TaskForm.ui.qml b/forms/TaskForm.ui.qml new file mode 100644 index 0000000..6010b57 --- /dev/null +++ b/forms/TaskForm.ui.qml @@ -0,0 +1,41 @@ +import QtQuick 2.12 +import QtQuick.Controls 2.12 +import QtQuick.Layouts 1.12 + +RowLayout { + property alias task: task + property alias checkBox: checkBox + + id: task + width: fillWidth + height: 54 + anchors.topMargin: 8 + anchors.right: parent.right + anchors.rightMargin: 0 + anchors.left: parent.left + anchors.leftMargin: 0 + spacing: 8 + + CheckBox { + id: checkBox + text: qsTr("This is a task title") + padding: 8 + rightPadding: 16 + leftPadding: 16 + bottomPadding: 16 + topPadding: 16 + Layout.fillHeight: true + Layout.fillWidth: true + font.family: "Google Sans" + font.pointSize: 16 + font.weight: Font.Medium + spacing: 24 + } + RoundButton { + id: chevronRight + flat: true + icon.name: "chevron-right-icon" + icon.source: "/assets/chevron-right-24px.svg" + icon.color: "#99000000" + } +} diff --git a/forms/TaskListForm.ui.qml b/forms/TaskListForm.ui.qml new file mode 100644 index 0000000..87f1b1c --- /dev/null +++ b/forms/TaskListForm.ui.qml @@ -0,0 +1,20 @@ +import QtQuick 2.12 +import QtQuick.Controls 2.12 +import QtQuick.Controls.Material 2.12 + +ListView { + width: 362 + height: parent.height + anchors.topMargin: 8 + anchors.right: parent.right + anchors.rightMargin: 0 + anchors.left: parent.left + anchors.leftMargin: 0 + spacing: 12 + + Rectangle { + id: rectangle + anchors.fill: parent + z: -1 + } +} |