Index: sources/gui/qml/pages/UserConfirmation.qml =================================================================== diff -u -r66506a15ac0234c0a2fcf78d3262fdb91c51cbca -rea616a4cf7cfe191c33e66119cd5a71b5772192a --- sources/gui/qml/pages/UserConfirmation.qml (.../UserConfirmation.qml) (revision 66506a15ac0234c0a2fcf78d3262fdb91c51cbca) +++ sources/gui/qml/pages/UserConfirmation.qml (.../UserConfirmation.qml) (revision ea616a4cf7cfe191c33e66119cd5a71b5772192a) @@ -30,8 +30,11 @@ objectName : "UserConfirmation" // SquishQt testability property bool isPassword: false - property string password: _password.textInput.text + readonly property string password: _password.textInput.text property alias message : _message.text + function clearPassword() { + _password.textInput.text = "" + } firstFocusInput : isPassword ? _password : undefined TextEntry { id : _password @@ -58,6 +61,7 @@ height : Variables.iconsDiameter source : "qrc:/images/iEye" } + MouseArea { anchors.fill: _showPassword onPressed : _password.textInput.echoMode = TextInput.Normal