summaryrefslogtreecommitdiff
path: root/controller.cxx
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-18 07:13:30 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-18 07:13:30 +0800
commit2a7b3e6807c3292a61fff413590e996b6dba83ba (patch)
tree1b08ca8fcac18e469bf3f942dd04cad337054adb /controller.cxx
parentf7325b10b1a200690bcf96b632782f561e7b701a (diff)
Change RT_ and rt_ to RTCLIENT_ and rtclient_ respectively
Diffstat (limited to 'controller.cxx')
-rw-r--r--controller.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/controller.cxx b/controller.cxx
index bb3cc15..cdd71cd 100644
--- a/controller.cxx
+++ b/controller.cxx
@@ -1,7 +1,7 @@
#include <QQmlApplicationEngine>
#include <QtQml>
-#include <qrtclient/user.hxx>
#include <qrtclient/client.hxx>
+#include <qrtclient/user.hxx>
#include "controller.hxx"
Controller::Controller(QObject* parent) : QObject{parent}
@@ -20,7 +20,7 @@ Controller::Controller(QObject* parent) : QObject{parent}
connect(loginView, SIGNAL(signUp(QString, QString, QString, QString))
, client, SLOT(userNew(QString, QString, QString
, QString)));
- connect(client, SIGNAL(logged(rt_user*)), loginView, SLOT(pushProfile()));
+ connect(client, SIGNAL(logged(rtclient_user*)), loginView, SLOT(pushProfile()));
connect(loginView, SIGNAL(search(QString)), client, SLOT(search(QString)));
using RTClient::User;
@@ -32,12 +32,13 @@ Controller::Controller(QObject* parent) : QObject{parent}
return new User;
});
auto user = engine->singletonInstance<User*>(typeId);
- connect(client, SIGNAL(logged(rt_user*)), user, SLOT(update(rt_user*)));
+ connect(client, SIGNAL(logged(rtclient_user*))
+ , user, SLOT(update(rtclient_user*)));
taskList = new RTClient::TicketList;
engine->rootContext()->setContextProperty("taskList", taskList);
- connect(client, SIGNAL(foundTickets(rt_ticketlist*))
- , taskList, SLOT(addTickets(rt_ticketlist*)));
+ connect(client, SIGNAL(foundTickets(rtclient_ticketlist*))
+ , taskList, SLOT(addTickets(rtclient_ticketlist*)));
thread.start();
}