From da303a3c4d82b758b0e9aba0bf49b8efc3e4843e Mon Sep 17 00:00:00 2001 From: Anatasof Wirapraja Date: Tue, 24 Sep 2019 23:42:55 +0700 Subject: fixed `TaskList` and `TaskDetail` `onClicked` --- TaskDetails.qml | 10 ++++++++++ TaskList.qml | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/TaskDetails.qml b/TaskDetails.qml index 190dfae..94162f6 100644 --- a/TaskDetails.qml +++ b/TaskDetails.qml @@ -1,5 +1,15 @@ import QtQuick 2.12 +import QtQuick.Controls 2.12 +import QtQuick.Controls.Material 2.12 +import QtQuick.Layouts 1.12 import "larva/features" TaskDetailForm { + backButton.onClicked: pageView.pop() } + +/*##^## +Designer { + D{i:0;autoSize:true;height:480;width:640} +} +##^##*/ diff --git a/TaskList.qml b/TaskList.qml index ab92327..b79720d 100644 --- a/TaskList.qml +++ b/TaskList.qml @@ -9,7 +9,7 @@ TaskListForm { width: parent.width height: task.height taskTitle.text: subject - itemDelegate.onClicked: contentView.push("TaskDetails.qml") + itemDelegate.onClicked: pageView.push("TaskDetails.qml") } } } -- cgit v1.2.3