|
|
|
|
@ -6,6 +6,9 @@ RowLayout {
|
|
|
|
|
id: root |
|
|
|
|
property alias text: password_tf.text |
|
|
|
|
property alias tf: password_tf |
|
|
|
|
property alias echoMode: password_tf.echoMode |
|
|
|
|
property bool showReveal: true |
|
|
|
|
|
|
|
|
|
signal accepted |
|
|
|
|
|
|
|
|
|
TextField { |
|
|
|
|
@ -17,6 +20,10 @@ RowLayout {
|
|
|
|
|
onAccepted: root.accepted() |
|
|
|
|
} |
|
|
|
|
ToolButton { |
|
|
|
|
id: revealButton |
|
|
|
|
enabled: root.showReveal |
|
|
|
|
opacity: root.showReveal ? 1 : 0 |
|
|
|
|
|
|
|
|
|
icon.source: '../../../icons/eye1.png' |
|
|
|
|
onClicked: { |
|
|
|
|
password_tf.echoMode = password_tf.echoMode == TextInput.Password ? TextInput.Normal : TextInput.Password |
|
|
|
|
|