using subControlRect
This commit is contained in:
parent
0a0acb5e27
commit
6f4a0045d5
@ -70,7 +70,9 @@ QSGNode* QskPushButtonSkinlet::updateSubNode(
|
||||
QRectF QskPushButtonSkinlet::textRect( const QskPushButton* button ) const
|
||||
{
|
||||
// buttonShift -> TODO
|
||||
QRectF r = button->innerBox( QskPushButton::Panel, button->contentsRect() );
|
||||
|
||||
QRectF r = button->innerBox( QskPushButton::Panel,
|
||||
subControlRect( button, QskPushButton::Panel ) );
|
||||
|
||||
if ( button->hasGraphic() )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user