From 61c0ab4534ae569c7ea277eabb90b0ac78fe1dc9 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Thu, 29 Jun 2017 06:18:52 -0400 Subject: [PATCH] Clang: fix the right conversions (thanks KKofler) --- src/libcalamaresui/utils/CalamaresUtilsGui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcalamaresui/utils/CalamaresUtilsGui.cpp b/src/libcalamaresui/utils/CalamaresUtilsGui.cpp index 131c4f3cb..3b04897ae 100644 --- a/src/libcalamaresui/utils/CalamaresUtilsGui.cpp +++ b/src/libcalamaresui/utils/CalamaresUtilsGui.cpp @@ -157,7 +157,7 @@ createRoundedImage( const QPixmap& pixmap, const QSize& size, float frameWidthPc painter.setBrush( brush ); painter.setPen( pen ); - painter.drawRoundedRect( outerRect, frameWidthPct * 100.0f, frameWidthPct * 100.0f, Qt::RelativeSize ); + painter.drawRoundedRect( outerRect, qreal(frameWidthPct) * 100.0, qreal(frameWidthPct) * 100.0, Qt::RelativeSize ); /* painter.setBrush( Qt::transparent ); painter.setPen( Qt::white ); @@ -223,7 +223,7 @@ setDefaultFontSize( int points ) QSize defaultIconSize() { - const int w = defaultFontHeight() * 1.6f; + const int w = int(defaultFontHeight() * 1.6); return QSize( w, w ); }