mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
Clang: fix the right conversions (thanks KKofler)
This commit is contained in:
parent
0b6e43c899
commit
61c0ab4534
1 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue