[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kdeui
From:       Antonio Larrosa Jimenez <larrosa () kde ! org>
Date:       2002-12-08 23:41:58
[Download RAW message or body]

CVS commit by antlarr: 

Fixed a bug that made konqueror show garbage in the background of the list of
files just when opening the context menu (RMB click).
This patch depends on the previously committed patch to qt-copy.
Can someone backport it to the 3.1 branch? It's not useful there right now, but
it will be when people link 3.1 to Qt 3.1.1 or newer (when they include that fix)


  M +2 -1      klistview.cpp   1.187


--- kdelibs/kdeui/klistview.cpp  #1.186:1.187
@@ -2080,5 +2080,6 @@ void KListViewItem::paintCell(QPainter *
   {
         _cg.setBrush(QColorGroup::Base, QBrush(backgroundColor(), *pm));
-        p->setBrushOrigin( -listView()->contentsX(), -listView()->contentsY() );
+        QPoint o = p->brushOrigin();
+        p->setBrushOrigin( o.x()-listView()->contentsX(), o.y()-listView()->contentsY() );
   }
   else if (isAlternate())


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic