From b7baeea2ab0f999a755226b79242f78a472d5a80 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: Thu, 19 Sep 2019 22:15:47 +0800 Subject: Replaced UIs whose replacements are ready in Larva and reorganise logical QML files --- controller.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'controller.cxx') 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("login"); - connect(loginView, SIGNAL(logIn(QString, QString)) + auto onboardingView = appWindow->findChild("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; -- cgit v1.2.3