diff --git a/widgets/pushbutton.cpp b/widgets/pushbutton.cpp index a90a39038..fe2b5e63c 100644 --- a/widgets/pushbutton.cpp +++ b/widgets/pushbutton.cpp @@ -366,7 +366,7 @@ void PushButton::paint(QPainter *painter, QRectF rect = contentsRect(); if (!nativeWidget()->icon().isNull()) { - const iconSize = qMin(rect.width(), rect.height()); + const qreal iconSize = qMin(rect.width(), rect.height()); QPixmap iconPix = nativeWidget()->icon().pixmap(iconSize); if (!isEnabled()) { KIconEffect *effect = KIconLoader::global()->iconEffect();