diff options
-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*))); |