summaryrefslogtreecommitdiff
path: root/controller.cxx
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-30 10:36:16 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-30 10:36:16 +0800
commit583323be56520c697bbc9d08e6abf8ec4b5c42c3 (patch)
tree08b22d02875e14cf9f7f77f3a19b41cbfd1e67f3 /controller.cxx
parentef5fe6bf814fbd745ef67796dbf123ac99d462c8 (diff)
Rename task to ticket
Diffstat (limited to 'controller.cxx')
-rw-r--r--controller.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/controller.cxx b/controller.cxx
index 1b0e9f3..a229495 100644
--- a/controller.cxx
+++ b/controller.cxx
@@ -33,15 +33,15 @@ Controller::Controller(QObject* parent) : QObject{parent}
auto typeId = qmlRegisterSingletonType<User>("KelakonUser", 0, 1, "User"
, [](QQmlEngine *engine
, QJSEngine *scriptEngine) -> QObject* {
- Q_UNUSED(engine)
- Q_UNUSED(scriptEngine)
- return new User;
+ Q_UNUSED(engine)
+ Q_UNUSED(scriptEngine)
+ return new User;
});
auto qUser = engine->singletonInstance<User*>(typeId);
using RTClient::TicketList;
- taskList = new TicketList;
- engine->rootContext()->setContextProperty("taskList", taskList);
+ ticketList = new TicketList;
+ engine->rootContext()->setContextProperty("ticketList", ticketList);
connect(appWindow, SIGNAL(logIn(QString, QString))
, client, SLOT(logIn(QString, QString)));
@@ -61,11 +61,11 @@ Controller::Controller(QObject* parent) : QObject{parent}
(&Controller::checked)
, client, &Client::ticketSearch);
- connect(client, &Client::ticketSearched, taskList, &TicketList::update);
+ connect(client, &Client::ticketSearched, ticketList, &TicketList::update);
connect(client, &Client::loggedIn, [appWindow,this]() {
auto loginView = appWindow->findChild<QObject*>("login");
- connect(taskList, &TicketList::updated, [loginView]() {
+ connect(ticketList, &TicketList::updated, [loginView]() {
QMetaObject::invokeMethod(loginView
, "pushHome");
});
@@ -84,5 +84,5 @@ Controller::~Controller()
{
thread.quit();
thread.wait();
- delete taskList;
+ delete ticketList;
}