summaryrefslogtreecommitdiff
path: root/controller.cxx
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-12 17:48:38 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-12 17:48:38 +0800
commitfe0a17cc38d21c0c0cfb45f5d8f08c6e72f9e409 (patch)
treee37f7e1d751fe3737901bc69454c269bac6d52d6 /controller.cxx
parentf2b182a34a28dfd40079d563ff47d2e56e4aae1e (diff)
Move the QML login signal from appWindow to login
Diffstat (limited to 'controller.cxx')
-rw-r--r--controller.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/controller.cxx b/controller.cxx
index 9d77cf4..3b4b4de 100644
--- a/controller.cxx
+++ b/controller.cxx
@@ -12,7 +12,9 @@ Controller::Controller(QObject* parent) : QObject{parent}
auto engine = dynamic_cast<QQmlApplicationEngine*>(parent);
auto rootObjects = engine->rootObjects();
auto appWindow = rootObjects[0];
- connect(appWindow, SIGNAL(logIn(QString, QString)),
+
+ auto loginView = appWindow->findChild<QObject*>("login");
+ connect(loginView, SIGNAL(logIn(QString, QString)),
worker, SLOT(logIn(QString, QString)));
auto user = engine->singletonInstance<User*>(User::typeId);