diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-19 22:15:47 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-19 22:15:47 +0800 |
commit | b7baeea2ab0f999a755226b79242f78a472d5a80 (patch) | |
tree | 64a3f77287ca1f4af365ab1d911079bd417ca574 /controller.cxx | |
parent | 7362b70f98e88f6a4118f79744c6f358abd730de (diff) |
Replaced UIs whose replacements are ready in Larva
and reorganise logical QML files
Diffstat (limited to 'controller.cxx')
-rw-r--r-- | controller.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/controller.cxx b/controller.cxx index c9403dd..82e439d 100644 --- a/controller.cxx +++ b/controller.cxx @@ -14,16 +14,16 @@ Controller::Controller(QObject* parent) : QObject{parent} auto rootObjects = engine->rootObjects(); auto appWindow = rootObjects[0]; - auto loginView = appWindow->findChild<QObject*>("login"); - connect(loginView, SIGNAL(logIn(QString, QString)) + auto onboardingView = appWindow->findChild<QObject*>("onboarding"); + connect(onboardingView, SIGNAL(logIn(QString, QString)) , client, SLOT(logIn(QString, QString))); connect(client, SIGNAL(loggedIn(QString)) , client, SLOT(userShow(QString))); connect(client, SIGNAL(userShown(rtclient_user*)) - , loginView, SLOT(pushProfile())); - connect(loginView, SIGNAL(ticketNew(QString, QString)) + , onboardingView, SLOT(pushProfile())); + connect(onboardingView, SIGNAL(ticketNew(QString, QString)) , client, SLOT(ticketNew(QString, QString))); - connect(loginView, SIGNAL(ticketSearch(QString)) + connect(onboardingView, SIGNAL(ticketSearch(QString)) , client, SLOT(ticketSearch(QString))); using RTClient::User; |