Bugzilla – Attachment 173908 Details for
Bug 308641
Pixelated icons in YaST navigation (left pane)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
patch
bug_308641_.diff (text/x-patch), 1.29 KB, created by
Thomas Göttlicher
on 2007-09-21 14:27:12 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Thomas Göttlicher
Created:
2007-09-21 14:27:12 UTC
Size:
1.29 KB
patch
obsolete
>Index: y2controlcenterview.cpp >=================================================================== >--- y2controlcenterview.cpp (revision 41018) >+++ y2controlcenterview.cpp (working copy) >@@ -297,16 +297,15 @@ > icon = ptr->getIcon(); > groupname = ptr->getName(); > >- QPixmap origIcon( QPixmap( icondir + icon ) ); >- QPixmap iconWithBorder( origIcon.width() + 2 * GROUP_ICON_HORIZ_BORDER, >- origIcon.height() + 2 * GROUP_ICON_VERT_BORDER, >- origIcon.depth() ); >- QBitmap mask( iconWithBorder.width(), iconWithBorder.height(), true ); >- bitBlt( &mask, GROUP_ICON_HORIZ_BORDER, GROUP_ICON_VERT_BORDER, origIcon.mask() ); >- iconWithBorder.setMask( mask ); >- bitBlt( &iconWithBorder, GROUP_ICON_HORIZ_BORDER, GROUP_ICON_VERT_BORDER, &origIcon ); >- >- QListBoxPixmap * pixmapItem = new QListBoxPixmap( iconWithBorder, groupname ); >+ QImage img = QPixmap( icondir + icon ).convertToImage(); >+ >+ // draw border around icon because we want more space between the icons >+ img = img.copy( -1 * GROUP_ICON_HORIZ_BORDER , // x >+ -1 * GROUP_ICON_VERT_BORDER, // y >+ 2 * GROUP_ICON_HORIZ_BORDER + img.width() , // width >+ 2 * GROUP_ICON_VERT_BORDER + img.height() ); // height >+ >+ QListBoxPixmap * pixmapItem = new QListBoxPixmap( img, groupname ); > _listBox->insertItem( pixmapItem ); > > if (ptr->isEmpty())
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 308641
:
162738
|
173602
| 173908