From af9758eed129abf6cab3909853c357a0a9bb56e2 Mon Sep 17 00:00:00 2001 From: Erik Prabowo Date: Wed, 28 Aug 2019 19:22:30 +0800 Subject: Back button on e-mail button pops stack view --- pages/Email.qml | 6 ++++++ pages/EmailForm.ui.qml | 1 + 2 files changed, 7 insertions(+) diff --git a/pages/Email.qml b/pages/Email.qml index f29309e..d2a1df3 100644 --- a/pages/Email.qml +++ b/pages/Email.qml @@ -5,6 +5,12 @@ EmailForm { width: stackView.width height: stackView.height + backButton { + onClicked: { + stackView.pop() + } + } + loginButton { onClicked: { User.emailAddress = emailTextField.text diff --git a/pages/EmailForm.ui.qml b/pages/EmailForm.ui.qml index f4ab07e..9b1bea2 100644 --- a/pages/EmailForm.ui.qml +++ b/pages/EmailForm.ui.qml @@ -7,6 +7,7 @@ Rectangle { color: "#fff" border.width: 0 + property alias backButton: backButton property alias emailTextField: emailTextField property alias loginButton: loginButton -- cgit v1.2.3