From 90bff8fb6e3e3b1715c76a28ad27686243e3b307 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: Sat, 21 Sep 2019 08:10:55 +0800 Subject: Reorder code so the process steps is clearer --- controller.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/controller.cxx b/controller.cxx index 5ffe31f..d69a6d6 100644 --- a/controller.cxx +++ b/controller.cxx @@ -37,18 +37,17 @@ Controller::Controller(QObject* parent) : QObject{parent} connect(this, SIGNAL(checked(rtclient_user*)) , user, SLOT(update(rtclient_user*))); - connect(this, SIGNAL(checked(QString)) , client, SLOT(ticketSearch(QString))); connect(client, SIGNAL(ticketSearched(rtclient_ticketlist*)) , taskList, SLOT(update(rtclient_ticketlist*))); + connect(taskList, SIGNAL(updated()), onboardingView, SLOT(pushHome())); + connect(onboardingView, SIGNAL(ticketNew(QString, QString)) , client, SLOT(ticketNew(QString, QString))); - connect(taskList, SIGNAL(updated()), onboardingView, SLOT(pushHome())); - thread.start(); } -- cgit v1.2.3