Don't do 'foo->setAlphaChannel(*foo)', the function temporarily destroys
the internal data and the argument is just a reference to this (temporarily broken) object. svn path=/trunk/KDE/kdebase/workspace/; revision=783333
This commit is contained in:
parent
a3d931a84b
commit
8da621fad4
1 changed files with 1 additions and 1 deletions
|
@ -1116,7 +1116,7 @@ static void redraw_pixmaps()
|
||||||
bool isAct = (i < 3);
|
bool isAct = (i < 3);
|
||||||
QPixmap *pixm = pixmap[P_HELP + i];
|
QPixmap *pixm = pixmap[P_HELP + i];
|
||||||
pixm->fill(QColor(qRgba(0, 0, 0, 0)));
|
pixm->fill(QColor(qRgba(0, 0, 0, 0)));
|
||||||
pixm->setAlphaChannel(*pixm);
|
pixm->setAlphaChannel(QPixmap(*pixm));
|
||||||
p.begin(pixm);
|
p.begin(pixm);
|
||||||
QColor color = isAct ? activeColor : inactiveColor;
|
QColor color = isAct ? activeColor : inactiveColor;
|
||||||
QRect r = QRect(0, 0, pixm->width(), pixm->height());
|
QRect r = QRect(0, 0, pixm->width(), pixm->height());
|
||||||
|
|
Loading…
Reference in a new issue