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:
parent
aea9e0e6d8
commit
4e6da919f3
@ -80,7 +80,7 @@ QPixmap shadowText(QString text, const QFont &font, QColor textColor, QColor sha
|
|||||||
//Draw blurred shadow
|
//Draw blurred shadow
|
||||||
QImage img(textRect.size() + QSize(radius * 2, radius * 2),
|
QImage img(textRect.size() + QSize(radius * 2, radius * 2),
|
||||||
QImage::Format_ARGB32_Premultiplied);
|
QImage::Format_ARGB32_Premultiplied);
|
||||||
img.fill(Qt::transparent);
|
img.fill(0);
|
||||||
p.begin(&img);
|
p.begin(&img);
|
||||||
p.drawImage(QPoint(radius, radius), textPixmap.toImage());
|
p.drawImage(QPoint(radius, radius), textPixmap.toImage());
|
||||||
p.end();
|
p.end();
|
||||||
|
Loading…
Reference in New Issue
Block a user