diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-25 17:06:03 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-25 17:06:03 +0800 |
commit | fd0e5154a42da3cc9effc32f781a393d43ec5384 (patch) | |
tree | 580f15d420fc3f2467381046be3d5d803e4be767 | |
parent | 38b6e2e5661ce038c845e1f46847833c69dd0e27 (diff) |
Try to get ticket history when task item is clicked
-rw-r--r-- | TaskList.qml | 5 | ||||
-rw-r--r-- | controller.cxx | 3 | ||||
-rw-r--r-- | main.qml | 1 | ||||
m--------- | qrtclient | 0 |
4 files changed, 8 insertions, 1 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))); @@ -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 -Subproject edf7edbfc93071e90b001f36b730e31cb027a54 +Subproject e97f17a6cb95fb8a10a40ce6b94fc3ab591747c |