From bb7dcc25c714dde04529595cc5e2e15282cfd17c Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Wed, 26 Jul 2017 15:19:42 +0200 Subject: 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 --- mobile-widgets/qml/CloudCredentials.qml | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'mobile-widgets/qml/CloudCredentials.qml') 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 -- cgit v1.2.3-70-g09d2