diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-12 17:14:24 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-12 17:14:24 +0800 |
commit | 9f284fb7257f4968cfcd0a72b41e2e98ef51c890 (patch) | |
tree | 9dc1ea3a793ad80d2699175e7567022473c7e282 /controller.cxx | |
parent | ac1d174658c81a0a4c867d6945a7115f9cb961ac (diff) |
Finish the user properties and connect logged signal
Diffstat (limited to 'controller.cxx')
-rw-r--r-- | controller.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/controller.cxx b/controller.cxx index a08e633..9d77cf4 100644 --- a/controller.cxx +++ b/controller.cxx @@ -1,5 +1,6 @@ #include <QQmlApplicationEngine> #include "worker.hxx" +#include "user.hxx" #include "controller.hxx" Controller::Controller(QObject* parent) : QObject{parent} @@ -14,6 +15,10 @@ Controller::Controller(QObject* parent) : QObject{parent} connect(appWindow, SIGNAL(logIn(QString, QString)), worker, SLOT(logIn(QString, QString))); + auto user = engine->singletonInstance<User*>(User::typeId); + connect(worker, SIGNAL(logged(rt_user*)) + , user, SLOT(update(rt_user*))); + thread.start(); } |