diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-19 18:23:53 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-19 18:23:53 +0800 |
commit | 4b0fa857f4d798ce23c4fbb16b4936fc930cacb9 (patch) | |
tree | e7ea5e5225d5e334b1f942c3f6eee250b2650d51 /controller.cxx | |
parent | 56f6b67c908f0feb8d45ba92ae3abe5c7d0ab89c (diff) |
Connect RT client's loggedIn signal to its own userShow slot
Diffstat (limited to 'controller.cxx')
-rw-r--r-- | controller.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/controller.cxx b/controller.cxx index d77abfa..c9403dd 100644 --- a/controller.cxx +++ b/controller.cxx @@ -17,7 +17,9 @@ Controller::Controller(QObject* parent) : QObject{parent} auto loginView = appWindow->findChild<QObject*>("login"); connect(loginView, SIGNAL(logIn(QString, QString)) , client, SLOT(logIn(QString, QString))); - connect(client, SIGNAL(logged(rtclient_user*)) + connect(client, SIGNAL(loggedIn(QString)) + , client, SLOT(userShow(QString))); + connect(client, SIGNAL(userShown(rtclient_user*)) , loginView, SLOT(pushProfile())); connect(loginView, SIGNAL(ticketNew(QString, QString)) , client, SLOT(ticketNew(QString, QString))); @@ -33,7 +35,7 @@ Controller::Controller(QObject* parent) : QObject{parent} return new User; }); auto user = engine->singletonInstance<User*>(typeId); - connect(client, SIGNAL(logged(rtclient_user*)) + connect(client, SIGNAL(userShown(rtclient_user*)) , user, SLOT(update(rtclient_user*))); taskList = new RTClient::TicketList; |