From kde-commits Sun Dec 08 23:19:44 2002 From: Antonio Larrosa Jimenez Date: Sun, 08 Dec 2002 23:19:44 +0000 To: kde-commits Subject: qt-copy/src/widgets X-MARC-Message: https://marc.info/?l=kde-commits&m=103938960706785 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 );