From 6caa018d1cfd14e2d36feef8c24da3d01c18ce7e Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Thu, 7 Dec 2017 14:57:48 +0100 Subject: [PATCH] using QFont::setPointSizeF --- examples/automotive/DefaultSkin.cpp | 4 ++-- examples/automotive/OtherSkin.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/automotive/DefaultSkin.cpp b/examples/automotive/DefaultSkin.cpp index d254b63a..4dc76035 100644 --- a/examples/automotive/DefaultSkin.cpp +++ b/examples/automotive/DefaultSkin.cpp @@ -64,10 +64,10 @@ public: namespace { - static inline QFont qskFont( int pointSize ) + static inline QFont qskFont( qreal pointSize ) { QFont font( "Roboto" ); - font.setPointSize( pointSize / qskDpiScaled( 1.0 ) ); + font.setPointSizeF( pointSize / qskDpiScaled( 1.0 ) ); return font; } diff --git a/examples/automotive/OtherSkin.cpp b/examples/automotive/OtherSkin.cpp index da6a6010..05aed233 100644 --- a/examples/automotive/OtherSkin.cpp +++ b/examples/automotive/OtherSkin.cpp @@ -42,10 +42,10 @@ public: namespace { - static inline QFont qskFont( int pointSize ) + static inline QFont qskFont( qreal pointSize ) { QFont font( "Roboto" ); - font.setPointSize( pointSize / qskDpiScaled( 1.0 ) ); + font.setPointSizeF( pointSize / qskDpiScaled( 1.0 ) ); return font; }