[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeextragear-1/gwenview/src
From: Aurélien Gâteau <aurelien.gateau () mail ! dotcom ! fr>
Date: 2002-12-15 10:47:15
[Download RAW message or body]
CVS commit by gateau:
Reduced the selected rect by one pixel to avoid drawing artefacts with multi
selection.
M +6 -9 filethumbnailviewitem.cpp 1.5
--- kdeextragear-1/gwenview/src/filethumbnailviewitem.cpp #1.4:1.5
@@ -178,16 +178,13 @@ void FileThumbnailViewItem::truncateText
void FileThumbnailViewItem::paintItem(QPainter *p, const QColorGroup &cg) {
- QIconView* view = iconView();
- Q_ASSERT( view );
- if ( !view ) return;
+ QIconView* view=iconView();
+ Q_ASSERT(view);
+ if (!view) return;
-// Get the rects. We adjust pRect so that we get the outer rect of the pixmap
+ p->save();
+
+// Get the rects
QRect pRect=pixmapRect(false);
- pRect.moveBy(-1,-1);
- pRect.setWidth(pRect.width()+2);
- pRect.setHeight(pRect.height()+2);
QRect tRect=textRect(false);
-
- p->save();
// Draw pixmap
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic