[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: qt-copy/src/widgets
From: Antonio Larrosa Jimenez <larrosa () kde ! org>
Date: 2002-12-08 23:19:44
[Download RAW message or body]
CVS commit by antlarr:
Fix for QListView not setting the brush origin correctly.
It's been assigned the number #11637 on Trolltech's bug system, but I've got
no comment yet. Anyway, this is needed so that the brush origin is not set
arbitrarily for QListViewItem::paint* reimplementations.
The wrong effect fixed by this patch can be seen at
http://developer.kde.org/~larrosa/tmp/qlistview-wrong.png
M +1 -0 qlistview.cpp 1.52
--- qt-copy/src/widgets/qlistview.cpp #1.51:1.52
@@ -2787,4 +2787,5 @@ void QListView::drawContentsOffset( QPai
buffer.painter()->setPen( p->pen() );
buffer.painter()->setBrush( p->brush() );
+ buffer.painter()->setBrushOrigin( -r.left(), -r.top() );
current->i->paintCell( buffer.painter(), cg, ac, r.width(),
align );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic