From a374198d575cdb103ae3da3d7a58db51019aa7ed Mon Sep 17 00:00:00 2001 From: Jakob Petsovits Date: Mon, 24 Dec 2007 09:14:25 +0000 Subject: [PATCH] Fix icon uglyness by combining them on a transparent background instead of setting an all-or-nothing mask. svn path=/trunk/KDE/kdepim/; revision=752378 --- headeritem.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/headeritem.cpp b/headeritem.cpp index 2b5be00d6..7d762c8c4 100644 --- a/headeritem.cpp +++ b/headeritem.cpp @@ -214,23 +214,18 @@ QPixmap HeaderItem::pixmapMerge( PixmapList pixmaps ) const } QPixmap res( width, height ); - QBitmap mask( width, height ); + res.fill( Qt::transparent ); QPainter resultPainter( &res ); - QPainter maskPainter( &mask ); - mask.clear(); // Paint all pixmaps of the list to the resulting pixmap int x = 0; for ( PixmapList::ConstIterator it = pixmaps.begin(); it != pixmaps.end(); ++it ) { resultPainter.drawPixmap( x, ( height - (*it).height() ) / 2, *it ); - maskPainter.drawPixmap( x, (height - (*it).height()) / 2, (*it).mask() ); x += (*it).width(); } resultPainter.end(); - maskPainter.end(); - res.setMask( mask ); return res; }