From 9f284fb7257f4968cfcd0a72b41e2e98ef51c890 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, 12 Sep 2019 17:14:24 +0800 Subject: Finish the user properties and connect logged signal --- controller.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'controller.cxx') diff --git a/controller.cxx b/controller.cxx index a08e633..9d77cf4 100644 --- a/controller.cxx +++ b/controller.cxx @@ -1,5 +1,6 @@ #include #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::typeId); + connect(worker, SIGNAL(logged(rt_user*)) + , user, SLOT(update(rt_user*))); + thread.start(); } -- cgit v1.2.3