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 --- .../gmail/package/contents/ui/GmailSettings.qml | 32 ++++++---------------- 1 file changed, 8 insertions(+), 24 deletions(-) (limited to 'accounts/gmail/package/contents/ui/GmailSettings.qml') diff --git a/accounts/gmail/package/contents/ui/GmailSettings.qml b/accounts/gmail/package/contents/ui/GmailSettings.qml index 40a6e1e7..0ee18bed 100644 --- a/accounts/gmail/package/contents/ui/GmailSettings.qml +++ b/accounts/gmail/package/contents/ui/GmailSettings.qml @@ -116,32 +116,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: gmailSettings.imapPassword - onTextChanged: { - gmailSettings.imapPassword = text - gmailSettings.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: gmailSettings.imapPassword + onTextChanged: { + gmailSettings.imapPassword = text + gmailSettings.smtpPassword = text } } } -- cgit v1.2.3