diff options
-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 |