From 2be52462fd597a122f3564736acef1de894f6a02 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: Thu, 12 Sep 2019 22:17:02 +0800 Subject: Profile creation page is pushed only if logged in --- Login.qml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'Login.qml') diff --git a/Login.qml b/Login.qml index 17f60d1..b79ec87 100644 --- a/Login.qml +++ b/Login.qml @@ -2,14 +2,12 @@ import QtQuick 2.12 LoginForm { signal logIn(string name, string password) + function createProfile() { + stackView.push("qrc:/pages/CreateProfile.qml") + } objectName: "login" width: appWindow.width height: appWindow.height - - emailButton { - onClicked: { - stackView.push("qrc:/pages/Email.qml") - } - } + emailButton.onClicked: stackView.push("qrc:/pages/Email.qml") } -- cgit v1.2.3