It was actually more a KImageEffect, so after fixing it this hack isn't needed.
svn path=/trunk/kdebase/kwin/; revision=119987
This commit is contained in:
parent
7e8a0fc428
commit
5976109bbc
1 changed files with 1 additions and 9 deletions
|
@ -533,15 +533,7 @@ void KDEDefaultButton::drawButton(QPainter *p)
|
|||
|
||||
// Intensify the image if required
|
||||
if (isMouseOver) {
|
||||
if( btnpix.mask() != 0 ) {
|
||||
QBitmap save_mask = *btnpix.mask();
|
||||
QImage image = btnpix.convertToImage();
|
||||
KImageEffect::intensity(image, 0.8);
|
||||
// fix Qt problem, when QPixmap has alpha channel, mask is ignored
|
||||
image.setAlphaBuffer( false );
|
||||
btnpix.convertFromImage(image);
|
||||
btnpix.setMask( save_mask );
|
||||
}
|
||||
btnpix = KPixmapEffect::intensity(btnpix, 0.8);
|
||||
}
|
||||
|
||||
// Smooth scale the pixmap for small titlebars
|
||||
|
|
Loading…
Reference in a new issue