From ef5fe6bf814fbd745ef67796dbf123ac99d462c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Sun, 29 Sep 2019 23:41:07 +0800 Subject: Pass the ticket subject access to TaskDetails --- TaskDetails.qml | 1 + TaskList.qml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/TaskDetails.qml b/TaskDetails.qml index 577f908..6470b50 100644 --- a/TaskDetails.qml +++ b/TaskDetails.qml @@ -5,6 +5,7 @@ import QtQuick.Layouts 1.12 import "larva/features" TaskDetailForm { + property string subject backButton.onClicked: pageView.pop() StackView { diff --git a/TaskList.qml b/TaskList.qml index 15753bd..55a59ae 100644 --- a/TaskList.qml +++ b/TaskList.qml @@ -11,7 +11,8 @@ TaskListForm { taskTitle.text: subject itemDelegate.onClicked: { window.ticketHistory(id) - pageView.push("TaskDetails.qml") + pageView.push("TaskDetails.qml" + , {"subject": subject}) } } } -- cgit v1.2.3