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:
parent
4f16460715
commit
49dc6e5bcd
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user