summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2016-10-31 17:02:44 +0100
committerMichael Bohlender <michael.bohlender@kdemail.net>2016-10-31 17:02:44 +0100
commit5ce73dd108af66bf0fbf45fa20652c91ef25adc3 (patch)
tree5bb94a0c1f0a4017d194e7f7a98a965386a164a6
parent0bc548a43a660f1f0fd34846d85ce22cb6c61704 (diff)
downloadkube-5ce73dd108af66bf0fbf45fa20652c91ef25adc3.tar.gz
kube-5ce73dd108af66bf0fbf45fa20652c91ef25adc3.zip
add show password option to password field
-rw-r--r--accounts/imap/package/contents/ui/ImapAccountSettings.qml37
1 files changed, 28 insertions, 9 deletions
diff --git a/accounts/imap/package/contents/ui/ImapAccountSettings.qml b/accounts/imap/package/contents/ui/ImapAccountSettings.qml
index 80540912..a9ac9317 100644
--- a/accounts/imap/package/contents/ui/ImapAccountSettings.qml
+++ b/accounts/imap/package/contents/ui/ImapAccountSettings.qml
@@ -31,8 +31,8 @@ Item {
31 property string accountId 31 property string accountId
32 32
33 ImapAccount.ImapSettings { 33 ImapAccount.ImapSettings {
34 id: imapSettings 34 id: imapSettings
35 accountIdentifier: accountId 35 accountIdentifier: accountId
36 } 36 }
37 37
38 anchors.fill: parent 38 anchors.fill: parent
@@ -101,6 +101,7 @@ Item {
101 text: "Email address" 101 text: "Email address"
102 Layout.alignment: Qt.AlignRight 102 Layout.alignment: Qt.AlignRight
103 } 103 }
104
104 TextField { 105 TextField {
105 Layout.fillWidth: true 106 Layout.fillWidth: true
106 107
@@ -132,16 +133,34 @@ Item {
132 text: "Password" 133 text: "Password"
133 Layout.alignment: Qt.AlignRight 134 Layout.alignment: Qt.AlignRight
134 } 135 }
135 TextField { 136
137 RowLayout {
136 Layout.fillWidth: true 138 Layout.fillWidth: true
137 139
138 text: imapSettings.imapPassword 140 TextField {
139 placeholderText: "Password of your email account" 141 id: pwField
140 echoMode: TextInput.Password 142 Layout.fillWidth: true
141 onTextChanged: { 143
142 imapSettings.imapPassword = text 144 text: imapSettings.imapPassword
143 imapSettings.smtpPassword = text 145 placeholderText: "Password of your email account"
146 echoMode: TextInput.Password
147 onTextChanged: {
148 imapSettings.imapPassword = text
149 imapSettings.smtpPassword = text
150 }
151 }
152
153 CheckBox {
154 text: "Show Password"
155 onClicked: {
156 if(pwField.echoMode == TextInput.Password) {
157 pwField.echoMode = TextInput.Normal;
158 } else {
159 pwField.echoMode = TextInput.Password;
160 }
161 }
144 } 162 }
163
145 } 164 }
146 165
147 Kirigami.Label { 166 Kirigami.Label {