From kde-core-devel Fri Jun 15 20:01:11 2001 From: Malte.Starostik () t-online ! de (Malte Starostik) Date: Fri, 15 Jun 2001 20:01:11 +0000 To: kde-core-devel Subject: Re: Bug in KListViewItem::paintCell X-MARC-Message: https://marc.info/?l=kde-core-devel&m=99263538726518 On Freitag, 15. Juni 2001 21:52, Antonio Larrosa Jiménez wrote: > Hello, > > Could someone please have a look to KListViewItem::paintCell ? > I'd say the problem I reported some days ago in this list seems to be > there. It uses : > > const QPixmap *pm = listView()->viewport()->backgroundPixmap(); > if (pm && !pm->isNull()) > _cg.setBrush(QColorGroup::Base, QBrush(backgroundColor(), *pm)); > > and I'd say that that's why it only paints the beginning of the background > pixmap in each listview item (unless QColorGroup does some magic to get > the offset from the contents instead of from the viewport which doesn't > seem to work). In principle it is correct and the offset should work. You'll see that it works if you use a background with a large pattern (not a paper-type thing). The initial painting works, problems arise only when scrolling. Or do I miss something here? -Malte -- Wars don't determine who's right, only who's left.