mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 09:55:37 -04: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.setBrush( brush );
|
||||||
painter.setPen( pen );
|
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.setBrush( Qt::transparent );
|
||||||
painter.setPen( Qt::white );
|
painter.setPen( Qt::white );
|
||||||
|
@ -223,7 +223,7 @@ setDefaultFontSize( int points )
|
||||||
QSize
|
QSize
|
||||||
defaultIconSize()
|
defaultIconSize()
|
||||||
{
|
{
|
||||||
const int w = defaultFontHeight() * 1.6f;
|
const int w = int(defaultFontHeight() * 1.6);
|
||||||
return QSize( w, w );
|
return QSize( w, w );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue