From 7e765a903a25c18e7d703566844503235fbfa5b3 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Thu, 19 Jul 2018 15:21:47 +0200 Subject: [PATCH] using QFontMetricsF --- src/controls/QskPushButtonSkinlet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); }