summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2019-08-29 11:39:47 +0700
committerAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2019-08-29 11:39:47 +0700
commita2e632e650c03cdf498620841a0ed0ea65e46efc (patch)
tree5702465ea402033e4ddef5c43c091bdc7c95bef6
parent656413c2c8b348e8dd3ee95d36acf949a8466d85 (diff)
backbutton function
-rw-r--r--pages/Password.qml8
-rw-r--r--pages/PasswordForm.ui.qml1
2 files changed, 9 insertions, 0 deletions
diff --git a/pages/Password.qml b/pages/Password.qml
index e1fc168..7cd3d16 100644
--- a/pages/Password.qml
+++ b/pages/Password.qml
@@ -1,4 +1,12 @@
import QtQuick 2.12
+import id.co.darapsa.kelakon.user 0.1
PasswordForm {
+ width: stackView.width
+ height: stackView.height
+ backButton {
+ onClicked: {
+ stackView.pop()
+ }
+ }
}
diff --git a/pages/PasswordForm.ui.qml b/pages/PasswordForm.ui.qml
index 4aec9f4..b1132ef 100644
--- a/pages/PasswordForm.ui.qml
+++ b/pages/PasswordForm.ui.qml
@@ -8,6 +8,7 @@ Rectangle {
color: "#fff"
border.width: 0
+ property alias backButton: backButton
property alias passTextField: passTextField
property alias createPassButton: createPassButton