aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-07-26 15:19:42 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-26 22:30:43 +0900
commitbb7dcc25c714dde04529595cc5e2e15282cfd17c (patch)
tree832878d56388e1072e1ebf6e7209396d2e3009f8
parente1e1c4b6507bffcb168fcfdb1b8750d6160a5da7 (diff)
downloadsubsurface-bb7dcc25c714dde04529595cc5e2e15282cfd17c.tar.gz
QML UI: remove "show password" switch and only show pw on first entry
Like the subject says. We do not want the password to be made visible, so a switch to show it, is useless and is therefore removed. Futher, the entry mode is set to PasswordEchoOnEdit, which causes the passwd to be visible (for easy entry), but can't be made visible again after save/end edit. Fixes: #512 Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
-rw-r--r--mobile-widgets/qml/CloudCredentials.qml21
1 files changed, 1 insertions, 20 deletions
diff --git a/mobile-widgets/qml/CloudCredentials.qml b/mobile-widgets/qml/CloudCredentials.qml
index fd667c00c..fb4666348 100644
--- a/mobile-widgets/qml/CloudCredentials.qml
+++ b/mobile-widgets/qml/CloudCredentials.qml
@@ -79,7 +79,7 @@ Item {
TextField {
id: password
text: manager.cloudPassword
- echoMode: TextInput.Password
+ echoMode: TextInput.PasswordEchoOnEdit
inputMethodHints: Qt.ImhSensitiveData |
Qt.ImhHiddenText |
Qt.ImhNoAutoUppercase
@@ -89,25 +89,6 @@ Item {
}
}
- GridLayout {
- columns: 2
-
- Kirigami.Label {
- text: qsTr("Show password")
- Layout.preferredWidth: col1Width
- }
- SsrfSwitch {
- checked: false
- id: showPassword
- Layout.preferredWidth: col2Width
- onCheckedChanged: {
- if (checked)
- password.text = "" // don't show a hidden password
- password.echoMode = checked ? TextInput.Normal : TextInput.Password
- }
- }
- }
-
Kirigami.Label {
text: qsTr("PIN")
visible: rootItem.showPin