QImage.fill take a uint not a QColor so this color (Qt::transparent enum with 19 as a value) is invalid.

svn path=/trunk/KDE/kdelibs/; revision=908392
This commit is contained in:
Alexis Ménard 2009-01-09 16:50:27 +00:00
parent aea9e0e6d8
commit 4e6da919f3

View File

@ -80,7 +80,7 @@ QPixmap shadowText(QString text, const QFont &font, QColor textColor, QColor sha
//Draw blurred shadow
QImage img(textRect.size() + QSize(radius * 2, radius * 2),
QImage::Format_ARGB32_Premultiplied);
img.fill(Qt::transparent);
img.fill(0);
p.begin(&img);
p.drawImage(QPoint(radius, radius), textPixmap.toImage());
p.end();