From 4b0fa857f4d798ce23c4fbb16b4936fc930cacb9 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, 19 Sep 2019 18:23:53 +0800 Subject: Connect RT client's loggedIn signal to its own userShow slot --- controller.cxx | 6 ++++-- qrtclient | 2 +- 2 files changed, 5 insertions(+), 3 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("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(typeId); - connect(client, SIGNAL(logged(rtclient_user*)) + connect(client, SIGNAL(userShown(rtclient_user*)) , user, SLOT(update(rtclient_user*))); taskList = new RTClient::TicketList; diff --git a/qrtclient b/qrtclient index 0b05904..61c312c 160000 --- a/qrtclient +++ b/qrtclient @@ -1 +1 @@ -Subproject commit 0b05904d38acb050ead71ad256d59f70b9c9fe87 +Subproject commit 61c312c1e059b97ff131d375af78c7362bb0fc5a -- cgit v1.2.3