diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-25 10:24:55 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-25 10:24:55 +0800 |
commit | 640c6bd31354dd5810e104fe919d34300b145834 (patch) | |
tree | 8441bcbefd3832447d2aadcfdb01ac7633355c63 | |
parent | 06f744d8f3d458bde5d213ac0b9981ff0891153f (diff) |
Merge LoginEmail logics to Login's
because it was too simple to be separate.
-rw-r--r-- | Login.qml | 13 | ||||
-rw-r--r-- | LoginEmail.qml | 15 | ||||
-rw-r--r-- | kelakon.qrc | 1 |
3 files changed, 12 insertions, 17 deletions
@@ -1,4 +1,5 @@ import QtQuick 2.12 +import KelakonUser 0.1 import "larva/features" LoginForm { @@ -8,5 +9,15 @@ LoginForm { else drawer.open() - contentView.initialItem: LoginEmail{} + contentView.initialItem: LoginEmailForm { + emailTextField.onTextChanged: { + if (!emailTextField.text || !continueButton.enabled) + continueButton.enabled = !continueButton.enabled + } + + continueButton.onClicked: { + User.name = emailTextField.text + contentView.push("LoginPassword.qml") + } + } } diff --git a/LoginEmail.qml b/LoginEmail.qml deleted file mode 100644 index 67d45f4..0000000 --- a/LoginEmail.qml +++ /dev/null @@ -1,15 +0,0 @@ -import QtQuick 2.12 -import KelakonUser 0.1 -import "larva/features" - -LoginEmailForm { - emailTextField.onTextChanged: { - if (!emailTextField.text || !continueButton.enabled) - continueButton.enabled = !continueButton.enabled - } - - continueButton.onClicked: { - User.name = emailTextField.text - contentView.push("LoginPassword.qml") - } -} diff --git a/kelakon.qrc b/kelakon.qrc index 0d641ee..1342d52 100644 --- a/kelakon.qrc +++ b/kelakon.qrc @@ -2,7 +2,6 @@ <qresource prefix="/"> <file>main.qml</file> <file>Login.qml</file> - <file>LoginEmail.qml</file> <file>LoginPassword.qml</file> <file>Home.qml</file> <file>TaskList.qml</file> |