From 51d99bd3d451ffd42190bc7a0a8a85215a7454b6 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 20:43:41 +0800 Subject: Put password text related attribute setting together --- pages/ConfirmPassword.qml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pages/ConfirmPassword.qml b/pages/ConfirmPassword.qml index 92543ce..e13b53d 100644 --- a/pages/ConfirmPassword.qml +++ b/pages/ConfirmPassword.qml @@ -8,11 +8,13 @@ PasswordForm { userEmail.y: 292 instructionLabel.text: qsTr("Re-Enter password") emailAddressLabel.text: User.name - passTextField.placeholderText: qsTr("Re-enter Password") - passTextField.onTextChanged: { - if (!passTextField.text || !createPassButton.enabled) - createPassButton.enabled = !createPassButton.enabled + passTextField { + placeholderText: qsTr("Re-enter Password") + onTextChanged: { + if (!passTextField.text || !createPassButton.enabled) + createPassButton.enabled = !createPassButton.enabled + } } createPassButton { -- cgit v1.2.3