diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-07-31 18:58:39 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-07-31 18:58:39 +0200 |
commit | ed90f285745279e91743851ae49eeccf1d95710f (patch) | |
tree | c901f650c3b2b22e9cf0ce1af811452c5707e7ee /accounts/imap/package/contents/ui/ImapAccountSettings.qml | |
parent | 32e9eda3bd93e3197234cd9947a5522e5eb9da94 (diff) | |
download | kube-ed90f285745279e91743851ae49eeccf1d95710f.tar.gz kube-ed90f285745279e91743851ae49eeccf1d95710f.zip |
dedicated Kube.PasswordField
Diffstat (limited to 'accounts/imap/package/contents/ui/ImapAccountSettings.qml')
-rw-r--r-- | accounts/imap/package/contents/ui/ImapAccountSettings.qml | 32 |
1 files changed, 8 insertions, 24 deletions
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 { | |||
102 | text: qsTr("Password") | 102 | text: qsTr("Password") |
103 | Layout.alignment: Qt.AlignRight | 103 | Layout.alignment: Qt.AlignRight |
104 | } | 104 | } |
105 | RowLayout { | ||
106 | Layout.fillWidth: true | ||
107 | |||
108 | Kube.TextField { | ||
109 | id: pwField | ||
110 | Layout.fillWidth: true | ||
111 | |||
112 | placeholderText: qsTr("Password of your email account") | ||
113 | text: imapSettings.imapPassword | ||
114 | onTextChanged: { | ||
115 | imapSettings.imapPassword = text | ||
116 | imapSettings.smtpPassword = text | ||
117 | } | ||
118 | 105 | ||
119 | echoMode: TextInput.Password | 106 | Kube.PasswordField { |
120 | } | 107 | id: pwField |
108 | Layout.fillWidth: true | ||
121 | 109 | ||
122 | Controls.CheckBox { | 110 | placeholderText: qsTr("Password of your email account") |
123 | text: qsTr("Show Password") | 111 | text: imapSettings.imapPassword |
124 | onClicked: { | 112 | onTextChanged: { |
125 | if(pwField.echoMode == TextInput.Password) { | 113 | imapSettings.imapPassword = text |
126 | pwField.echoMode = TextInput.Normal; | 114 | imapSettings.smtpPassword = text |
127 | } else { | ||
128 | pwField.echoMode = TextInput.Password; | ||
129 | } | ||
130 | } | ||
131 | } | 115 | } |
132 | } | 116 | } |
133 | 117 | ||