Skip to content

Commit

Permalink
Make PasswordBox disappear if showPassword is set to true
Browse files Browse the repository at this point in the history
  • Loading branch information
mobius3 authored and plfiorini committed Jun 21, 2015
1 parent 6dcdcd6 commit b6483ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/2.0/PictureBox.qml
Expand Up @@ -97,10 +97,11 @@ FocusScope {

PasswordBox {
id: password
width: parent.width; height: 30
width: parent.width; height: showPassword ? 30 : 0
font.pixelSize: 14

focus: true
visible: showPassword

Keys.onPressed: {
if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) {
Expand Down

0 comments on commit b6483ac

Please sign in to comment.