Skip to content

Commit b6483ac

Browse files
mobius3plfiorini
authored andcommitted
Make PasswordBox disappear if showPassword is set to true
1 parent 6dcdcd6 commit b6483ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/2.0/PictureBox.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,11 @@ FocusScope {
9797

9898
PasswordBox {
9999
id: password
100-
width: parent.width; height: 30
100+
width: parent.width; height: showPassword ? 30 : 0
101101
font.pixelSize: 14
102102

103103
focus: true
104+
visible: showPassword
104105

105106
Keys.onPressed: {
106107
if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) {

0 commit comments

Comments
 (0)