Fix warning "QPixmap::operator=: Cannot assign to pixmap during painting"
svn path=/trunk/KDE/kdebase/workspace/; revision=1132445
This commit is contained in:
parent
f46e0634fb
commit
71959ec006
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,6 @@ static inline const KDecorationOptions* options()
|
|||
static void make_button_fx(const QPalette &g, QPixmap *pix, bool light=false)
|
||||
{
|
||||
pix->fill(g.background().color());
|
||||
QPainter p(pix);
|
||||
|
||||
if(QPixmap::defaultDepth() > 8){
|
||||
int i, destH, destS, destV, srcH, srcS, srcV;
|
||||
|
@ -150,6 +149,7 @@ static void make_button_fx(const QPalette &g, QPixmap *pix, bool light=false)
|
|||
|
||||
}
|
||||
else{
|
||||
QPainter p(pix);
|
||||
if(!lcDark1.mask()){
|
||||
lcDark1.setMask(lcDark1);
|
||||
lcDark2.setMask(lcDark2);
|
||||
|
|
Loading…
Reference in a new issue