Skip to content

Commit

Permalink
don't show the placeholder when text is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
uwerat committed Dec 9, 2024
1 parent b6f2003 commit 4ad28e6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/controls/QskTextFieldSkinlet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,13 @@ QSGNode* QskTextFieldSkinlet::updateSubNode(
}
case PlaceholderTextRole:
{
return updateTextNode( skinnable, node,
textField->placeholderText(), Q::PlaceholderText );
if ( textField->text().isEmpty() )
{
return updateTextNode( skinnable, node,
textField->placeholderText(), Q::PlaceholderText );
}

return nullptr;
}
}

Expand Down

0 comments on commit 4ad28e6

Please sign in to comment.