diff options
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(); } |