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

List:       kde-core-devel
Subject:    Re: Bug in KListViewItem::paintCell
From:       Antonio Larrosa =?iso-8859-1?q?Jim=E9nez?= <larrosa () kde ! org>
Date:       2001-06-15 20:23:35
[Download RAW message or body]

El Vie 15 Jun 2001 21:02, David Faure escribi=F3:
>
> QColorGroup does no such magic, it's only a container for colors :)
>

Well, that's why it is magic ;-)

> What you want is usually something like
>     QPainter p( viewport() );
>     p.translate( -contentsX(), -contentsY() );
>     p.setBrushOrigin( -contentsX(), -contentsY() );
>
> (Well, maybe only the last line in the case of paintCell()).

Exactly, just adding the last line fixed the problem.
Thanks a lot.

Greetings,

--
Antonio Larrosa Jimenez
KDE Core developer  - larrosa@kde.org
SuSE Labs developer - larrosa@suse.de
http://perso.wanadoo.es/antlarr
KDE - The development framework of the future, today.

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

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