From 583323be56520c697bbc9d08e6abf8ec4b5c42c3 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: Mon, 30 Sep 2019 10:36:16 +0800 Subject: Rename task to ticket --- controller.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'controller.cxx') 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("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(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("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; } -- cgit v1.2.3