View | Details | Raw Unified | Return to bug 308641
Collapse All | Expand All

(-)y2controlcenterview.cpp (-9 / +1 lines)
Lines 298-312 Link Here
298
	groupname = ptr->getName();
298
	groupname = ptr->getName();
299
299
300
	QPixmap origIcon( QPixmap( icondir + icon ) );
300
	QPixmap origIcon( QPixmap( icondir + icon ) );
301
	QPixmap iconWithBorder( origIcon.width()  + 2 * GROUP_ICON_HORIZ_BORDER,
301
	QListBoxPixmap * pixmapItem = new QListBoxPixmap( origIcon, groupname );
302
				origIcon.height() + 2 * GROUP_ICON_VERT_BORDER,
303
				origIcon.depth() );
304
	QBitmap mask( iconWithBorder.width(), iconWithBorder.height(), true );
305
	bitBlt( &mask, GROUP_ICON_HORIZ_BORDER, GROUP_ICON_VERT_BORDER, origIcon.mask() );
306
	iconWithBorder.setMask( mask );
307
	bitBlt( &iconWithBorder, GROUP_ICON_HORIZ_BORDER, GROUP_ICON_VERT_BORDER, &origIcon );
308
	
309
	QListBoxPixmap * pixmapItem = new QListBoxPixmap( iconWithBorder, groupname );
310
	_listBox->insertItem( pixmapItem );
302
	_listBox->insertItem( pixmapItem );
311
	
303
	
312
	if (ptr->isEmpty())
304
	if (ptr->isEmpty())

Return to bug 308641