diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-12 22:58:32 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-12 22:58:32 +0800 |
commit | f94f1928980c7d3100b83e5d8394561cb986ccd5 (patch) | |
tree | d8f7857d13a1ba0a81417e8f52e49e5cc587a673 | |
parent | 35217b3a6e1794814881d25f1e440232eac23b71 (diff) |
Connect the skip button to search tickets/tasks
-rw-r--r-- | Login.qml | 1 | ||||
-rw-r--r-- | controller.cxx | 1 | ||||
-rw-r--r-- | pages/CreateProfile.qml | 5 |
3 files changed, 6 insertions, 1 deletions
@@ -2,6 +2,7 @@ import QtQuick 2.12 LoginForm { signal logIn(string name, string password) + signal search(string name) function pushProfile() { stackView.push("qrc:/pages/CreateProfile.qml") } diff --git a/controller.cxx b/controller.cxx index b1ba81b..b9bdf5e 100644 --- a/controller.cxx +++ b/controller.cxx @@ -17,6 +17,7 @@ Controller::Controller(QObject* parent) : QObject{parent} connect(loginView, SIGNAL(logIn(QString, QString)), worker, SLOT(logIn(QString, QString))); connect(worker, SIGNAL(logged(rt_user*)), loginView, SLOT(pushProfile())); + connect(loginView, SIGNAL(search(QString)), worker, SLOT(search(QString))); auto user = engine->singletonInstance<User*>(User::typeId); connect(worker, SIGNAL(logged(rt_user*)), user, SLOT(update(rt_user*))); diff --git a/pages/CreateProfile.qml b/pages/CreateProfile.qml index e03442d..483814f 100644 --- a/pages/CreateProfile.qml +++ b/pages/CreateProfile.qml @@ -5,7 +5,10 @@ CreateProfileForm { width: stackView.width height: stackView.height backButton.onClicked: stackView.pop() - skipButton.onClicked: stackView.push("qrc:/pages/Home.qml") + skipButton.onClicked: { + login.search(User.name) + stackView.push("qrc:/pages/Home.qml") + } emailAddressLabel.text: User.emailAddress enterFullName.text: User.realName } |