summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-21 09:16:26 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-21 09:16:26 +0800
commit552fd78f70ad29490a7536d86a653a43c3c89a5f (patch)
tree678eee7bd2acfd6c2cf37a0615cd60999f62712a
parent061b0b205ea84a008bb52ef4f13dea77d9a37952 (diff)
Insert task list in the day form
-rw-r--r--Future.qml3
-rw-r--r--TaskList.qml2
-rw-r--r--Today.qml3
-rw-r--r--forms/DayForm.ui.qml5
4 files changed, 10 insertions, 3 deletions
diff --git a/Future.qml b/Future.qml
index 6550ad5..33b66fd 100644
--- a/Future.qml
+++ b/Future.qml
@@ -4,4 +4,7 @@ import "forms"
DayForm {
title: qsTr("Future task")
contentLabel.text: qsTr("You are back to the future.")
+ TaskList {
+ anchors.bottom: contentLabel.top
+ }
}
diff --git a/TaskList.qml b/TaskList.qml
index 042fcad..696f9ce 100644
--- a/TaskList.qml
+++ b/TaskList.qml
@@ -1,6 +1,6 @@
import QtQuick 2.12
import QtQuick.Controls 2.12
-import "pages"
+import "forms"
TaskListForm {
objectName: "taskList"
diff --git a/Today.qml b/Today.qml
index a1fd613..4b08fae 100644
--- a/Today.qml
+++ b/Today.qml
@@ -4,4 +4,7 @@ import "forms"
DayForm {
title: qsTr("Today")
contentLabel.text: qsTr("Load `contentView` here")
+ TaskList {
+ anchors.bottom: contentLabel.top
+ }
}
diff --git a/forms/DayForm.ui.qml b/forms/DayForm.ui.qml
index f2de6cf..0478110 100644
--- a/forms/DayForm.ui.qml
+++ b/forms/DayForm.ui.qml
@@ -1,12 +1,13 @@
import QtQuick 2.12
import QtQuick.Controls 2.12
-import QtQuick.Controls.Material 2.12
Page {
+ id: page
property alias contentLabel: contentLabel
Label {
id: contentLabel
- anchors.centerIn: parent
+ anchors.horizontalCenter: parent.horizontalCenter
+ anchors.bottom: parent.bottom
}
}