From ed90f285745279e91743851ae49eeccf1d95710f Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Mon, 31 Jul 2017 18:58:39 +0200 Subject: dedicated Kube.PasswordField --- .../package/contents/ui/ImapAccountSettings.qml | 32 ++++++---------------- 1 file changed, 8 insertions(+), 24 deletions(-) (limited to 'accounts/imap/package/contents/ui/ImapAccountSettings.qml') diff --git a/accounts/imap/package/contents/ui/ImapAccountSettings.qml b/accounts/imap/package/contents/ui/ImapAccountSettings.qml index 332b2bbe..26a41541 100644 --- a/accounts/imap/package/contents/ui/ImapAccountSettings.qml +++ b/accounts/imap/package/contents/ui/ImapAccountSettings.qml @@ -102,32 +102,16 @@ Item { text: qsTr("Password") Layout.alignment: Qt.AlignRight } - RowLayout { - Layout.fillWidth: true - - Kube.TextField { - id: pwField - Layout.fillWidth: true - - placeholderText: qsTr("Password of your email account") - text: imapSettings.imapPassword - onTextChanged: { - imapSettings.imapPassword = text - imapSettings.smtpPassword = text - } - echoMode: TextInput.Password - } + Kube.PasswordField { + id: pwField + Layout.fillWidth: true - Controls.CheckBox { - text: qsTr("Show Password") - onClicked: { - if(pwField.echoMode == TextInput.Password) { - pwField.echoMode = TextInput.Normal; - } else { - pwField.echoMode = TextInput.Password; - } - } + placeholderText: qsTr("Password of your email account") + text: imapSettings.imapPassword + onTextChanged: { + imapSettings.imapPassword = text + imapSettings.smtpPassword = text } } -- cgit v1.2.3