diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-12 22:56:54 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-12 22:56:54 +0800 |
commit | 94bdca1ca59026e40c9dfe6d88cc84bc57b310a8 (patch) | |
tree | e5e737c65e97a79ac92997cad4f1ea9233d9a6ef | |
parent | ff81ff0d048f2f1fed503b5e1685d2b1e3fd9c12 (diff) |
Rename createProfile QML function to pushProfile
-rw-r--r-- | Login.qml | 2 | ||||
-rw-r--r-- | controller.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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*))); |