diff options
Diffstat (limited to 'accounts/gmail/package')
-rw-r--r-- | accounts/gmail/package/contents/ui/GmailSettings.qml | 32 |
1 files changed, 8 insertions, 24 deletions
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 { | |||
116 | text: qsTr("Password") | 116 | text: qsTr("Password") |
117 | Layout.alignment: Qt.AlignRight | 117 | Layout.alignment: Qt.AlignRight |
118 | } | 118 | } |
119 | RowLayout { | ||
120 | Layout.fillWidth: true | ||
121 | |||
122 | Kube.TextField { | ||
123 | id: pwField | ||
124 | Layout.fillWidth: true | ||
125 | |||
126 | placeholderText: qsTr("Password of your email account") | ||
127 | text: gmailSettings.imapPassword | ||
128 | onTextChanged: { | ||
129 | gmailSettings.imapPassword = text | ||
130 | gmailSettings.smtpPassword = text | ||
131 | } | ||
132 | 119 | ||
133 | echoMode: TextInput.Password | 120 | Kube.PasswordField { |
134 | } | 121 | id: pwField |
122 | Layout.fillWidth: true | ||
135 | 123 | ||
136 | Controls.CheckBox { | 124 | placeholderText: qsTr("Password of your email account") |
137 | text: qsTr("Show Password") | 125 | text: gmailSettings.imapPassword |
138 | onClicked: { | 126 | onTextChanged: { |
139 | if(pwField.echoMode == TextInput.Password) { | 127 | gmailSettings.imapPassword = text |
140 | pwField.echoMode = TextInput.Normal; | 128 | gmailSettings.smtpPassword = text |
141 | } else { | ||
142 | pwField.echoMode = TextInput.Password; | ||
143 | } | ||
144 | } | ||
145 | } | 129 | } |
146 | } | 130 | } |
147 | } | 131 | } |