fix build on arm
svn path=/trunk/KDE/kdelibs/; revision=891099
This commit is contained in:
parent
40041fe655
commit
258a749f36
@ -285,7 +285,7 @@ void ToolButton::paint(QPainter *painter,
|
|||||||
QPainter bufferPainter(&buffer);
|
QPainter bufferPainter(&buffer);
|
||||||
bufferPainter.setCompositionMode(QPainter::CompositionMode_DestinationIn);
|
bufferPainter.setCompositionMode(QPainter::CompositionMode_DestinationIn);
|
||||||
QColor alphaColor(Qt::black);
|
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.fillRect(buffer.rect(), alphaColor);
|
||||||
bufferPainter.end();
|
bufferPainter.end();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user