Backport 908392 from trunk

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

svn path=/branches/KDE/4.2/kdelibs/; revision=908395
This commit is contained in:
Alexis Ménard 2009-01-09 16:53:50 +00:00
parent 4f16460715
commit 49dc6e5bcd

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();