summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TaskDetails.qml5
-rw-r--r--TaskList.qml10
-rw-r--r--forms/TaskForm.ui.qml1
-rw-r--r--kelakon.qrc1
m---------larva0
5 files changed, 9 insertions, 8 deletions
diff --git a/TaskDetails.qml b/TaskDetails.qml
new file mode 100644
index 0000000..190dfae
--- /dev/null
+++ b/TaskDetails.qml
@@ -0,0 +1,5 @@
+import QtQuick 2.12
+import "larva/features"
+
+TaskDetailForm {
+}
diff --git a/TaskList.qml b/TaskList.qml
index d522417..6507ac3 100644
--- a/TaskList.qml
+++ b/TaskList.qml
@@ -1,5 +1,4 @@
import QtQuick 2.12
-import QtQuick.Controls 2.12
import "forms"
TaskListForm {
@@ -9,13 +8,8 @@ TaskListForm {
delegate: TaskForm {
width: parent.width
height: task.height
- taskTitle.text: subject
+ taskTitle.text: subject
+ itemDelegate.onClicked: contentView.push("TaskDetails.qml")
}
}
}
-
-/*##^##
-Designer {
- D{i:0;autoSize:true;height:480;width:640}
-}
-##^##*/
diff --git a/forms/TaskForm.ui.qml b/forms/TaskForm.ui.qml
index 4007e75..57cfbce 100644
--- a/forms/TaskForm.ui.qml
+++ b/forms/TaskForm.ui.qml
@@ -5,6 +5,7 @@ import QtQuick.Layouts 1.12
GridLayout {
property alias task: task
property alias taskTitle: taskTitle
+ property alias itemDelegate: itemDelegate
id: task
height: 72
diff --git a/kelakon.qrc b/kelakon.qrc
index 0409170..3757956 100644
--- a/kelakon.qrc
+++ b/kelakon.qrc
@@ -22,6 +22,7 @@
<file>forms/HomeForm.ui.qml</file>
<file>forms/DayListForm.ui.qml</file>
<file>TaskList.qml</file>
+ <file>TaskDetails.qml</file>
<file>forms/TaskListForm.ui.qml</file>
<file>forms/TaskForm.ui.qml</file>
<file>assets/photo_camera_24px.svg</file>
diff --git a/larva b/larva
-Subproject d5d916ce5871a9786dfbeb5f016a6a8558c349c
+Subproject 4a682d953c2352107fee6d3dec8de324207351f