fix build on arm

svn path=/trunk/KDE/kdelibs/; revision=891099
This commit is contained in:
Aaron J. Seigo 2008-12-01 08:48:25 +00:00
parent 40041fe655
commit 258a749f36

View File

@ -285,7 +285,7 @@ void ToolButton::paint(QPainter *painter,
QPainter bufferPainter(&buffer);
bufferPainter.setCompositionMode(QPainter::CompositionMode_DestinationIn);
QColor alphaColor(Qt::black);
alphaColor.setAlphaF(qMin(0.95, d->opacity));
alphaColor.setAlphaF(qMin(qreal(0.95), d->opacity));
bufferPainter.fillRect(buffer.rect(), alphaColor);
bufferPainter.end();