summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-12 22:56:54 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-12 22:56:54 +0800
commit94bdca1ca59026e40c9dfe6d88cc84bc57b310a8 (patch)
treee5e737c65e97a79ac92997cad4f1ea9233d9a6ef
parentff81ff0d048f2f1fed503b5e1685d2b1e3fd9c12 (diff)
Rename createProfile QML function to pushProfile
-rw-r--r--Login.qml2
-rw-r--r--controller.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/Login.qml b/Login.qml
index b79ec87..0220a23 100644
--- a/Login.qml
+++ b/Login.qml
@@ -2,7 +2,7 @@ import QtQuick 2.12
LoginForm {
signal logIn(string name, string password)
- function createProfile() {
+ function pushProfile() {
stackView.push("qrc:/pages/CreateProfile.qml")
}
diff --git a/controller.cxx b/controller.cxx
index b256a3e..b1ba81b 100644
--- a/controller.cxx
+++ b/controller.cxx
@@ -16,7 +16,7 @@ Controller::Controller(QObject* parent) : QObject{parent}
auto loginView = appWindow->findChild<QObject*>("login");
connect(loginView, SIGNAL(logIn(QString, QString)),
worker, SLOT(logIn(QString, QString)));
- connect(worker, SIGNAL(logged(rt_user*)), loginView, SLOT(createProfile()));
+ connect(worker, SIGNAL(logged(rt_user*)), loginView, SLOT(pushProfile()));
auto user = engine->singletonInstance<User*>(User::typeId);
connect(worker, SIGNAL(logged(rt_user*)), user, SLOT(update(rt_user*)));