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:
Luboš Luňák 2001-10-30 18:31:52 +00:00
parent 7e8a0fc428
commit 5976109bbc

View file

@ -533,15 +533,7 @@ void KDEDefaultButton::drawButton(QPainter *p)
// Intensify the image if required // Intensify the image if required
if (isMouseOver) { if (isMouseOver) {
if( btnpix.mask() != 0 ) { btnpix = KPixmapEffect::intensity(btnpix, 0.8);
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 );
}
} }
// Smooth scale the pixmap for small titlebars // Smooth scale the pixmap for small titlebars