From fd0e5154a42da3cc9effc32f781a393d43ec5384 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: Wed, 25 Sep 2019 17:06:03 +0800 Subject: Try to get ticket history when task item is clicked --- TaskList.qml | 5 ++++- controller.cxx | 3 +++ main.qml | 1 + qrtclient | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/TaskList.qml b/TaskList.qml index 1d7837f..15753bd 100644 --- a/TaskList.qml +++ b/TaskList.qml @@ -9,7 +9,10 @@ TaskListForm { width: parent.width height: task.height taskTitle.text: subject - itemDelegate.onClicked: pageView.push("TaskDetails.qml") + itemDelegate.onClicked: { + window.ticketHistory(id) + pageView.push("TaskDetails.qml") + } } } } diff --git a/controller.cxx b/controller.cxx index 9908fb8..c4b8ca3 100644 --- a/controller.cxx +++ b/controller.cxx @@ -57,6 +57,9 @@ Controller::Controller(QObject* parent) : QObject{parent} connect(taskList, SIGNAL(updated()), appWindow, SLOT(pushHome())); + connect(appWindow, SIGNAL(ticketHistory(int)) + , client, SLOT(ticketHistory(int))); + connect(appWindow, SIGNAL(ticketNew(QString, QString)) , client, SLOT(ticketNew(QString, QString))); diff --git a/main.qml b/main.qml index 054ea7c..7c8c5d9 100644 --- a/main.qml +++ b/main.qml @@ -4,6 +4,7 @@ import "larva/features" ApplicationWindow { signal logIn(string name, string password) + signal ticketHistory(int id) signal ticketNew(string queue, string requestor) function pushHome() { pageView.push("Home.qml") diff --git a/qrtclient b/qrtclient index edf7edb..e97f17a 160000 --- a/qrtclient +++ b/qrtclient @@ -1 +1 @@ -Subproject commit edf7edbfc93071e90b001f36b730e31cb027a54f +Subproject commit e97f17a6cb95fb8a10a40ce6b94fc3ab591747c0 -- cgit v1.2.3