diff --git a/src/controls/QskPushButtonSkinlet.cpp b/src/controls/QskPushButtonSkinlet.cpp index 5213974e..a942a6aa 100644 --- a/src/controls/QskPushButtonSkinlet.cpp +++ b/src/controls/QskPushButtonSkinlet.cpp @@ -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 ); }