QML UI: add debug output for echoMode

For some users by default the password characters aren't hidden. Maybe the
debugging output will help us understand what's going on.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-12-27 12:20:36 -08:00
parent 97c23d6ee5
commit 81999e4667

View file

@ -60,6 +60,7 @@ Item {
checked: false checked: false
id: showPassword id: showPassword
onCheckedChanged: { onCheckedChanged: {
console.log("changing password echoMode to " + (checked ? TextInput.Normal : TextInput.Password) + " was " + password.echoMode);
password.echoMode = checked ? TextInput.Normal : TextInput.Password password.echoMode = checked ? TextInput.Normal : TextInput.Password
} }
} }
@ -96,5 +97,9 @@ Item {
Item { Item {
Layout.fillHeight: true Layout.fillHeight: true
} }
Component.onCompleted: {
console.log("password echoMode is " + password.echoMode);
}
} }
} }