Skip to content

Commit

Permalink
respect the marginHint for graphic subcontrols
Browse files Browse the repository at this point in the history
  • Loading branch information
uwerat committed Dec 12, 2024
1 parent 16ca8e6 commit a6992c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/controls/QskSkinlet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,9 @@ QSGNode* QskSkinlet::updateGraphicNode(
const QskGraphic& graphic, QskAspect::Subcontrol subControl,
Qt::Orientations mirrored ) const
{
const auto rect = qskSubControlRect( this, skinnable, subControl );
auto rect = qskSubControlRect( this, skinnable, subControl );
rect = rect.marginsRemoved( skinnable->marginHint( subControl ) );

const auto alignment = skinnable->alignmentHint( subControl, Qt::AlignCenter );
const auto colorFilter = skinnable->effectiveGraphicFilter( subControl );

Expand Down

0 comments on commit a6992c2

Please sign in to comment.