using QFontMetricsF

This commit is contained in:
Uwe Rathmann 2018-07-19 15:21:47 +02:00
parent 465009bce2
commit 7e765a903a

View File

@ -78,7 +78,7 @@ QRectF QskPushButtonSkinlet::textRect( const QskPushButton* button ) const
{
// in case of having text + graphic we put the text at the bottom
qreal h = QFontMetrics( button->effectiveFont( QskPushButton::Text ) ).height();
qreal h = QFontMetricsF( button->effectiveFont( QskPushButton::Text ) ).height();
if ( h < r.height() )
r.setTop( r.bottom() - h );
}