Kmail: Folder Tree Flickering

Scott Wheeler wheeler at kde.org
Tue Mar 9 10:52:08 CET 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 08 March 2004 20:48, Stefan Heimers wrote:
> 
> In Kmail, the folder tree on the left is flickering for some time after 
> you select "Check Mail". It seems like the whole tree is redrawn each 
> time one element is changed, even if that element is not visible at 
> that time.

First, this list isn't for reporting bugs, so I'm going to answer presuming 
you're willing to work on this...

> Is this a problem in the folder code in the libraries, or is Kmail using 
> it in the wrong way?

It's a problem with the triggerUpdate() method of QListView and it's overuse 
in the QListView implementation.

> Is there a way to tell qt not to update the display during the changes? 
> Or would it be possible/faster to copy the tree, set the copy 
> invisible, make the changes and then just swap the two trees?

It is possible to do a hack if it's really bad to reimplement the thing that's 
triggering the repaints and to specify only the regions of the widget that 
need to be repainted.  I did this a while back for the listview in Konq's 
file manager, I haven't noticed it being particularly bad in KMail.  If you 
want to get a feel for how this is done look at the diffs for:

http://lists.kde.org/?l=kde-cvs&m=106390691130000&w=2

- -Scott

- -- 
The world is full of magical things patiently waiting for our wits to grow 
sharper. 
- --Bertrand Russell
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFATZPIQu0ByfY5QTkRAjuWAKCuNX+lLqaOWb6aE6hc7x77eCRcXgCgjKh8
/EB68xykp7iDomCaisO2cos=
=+z90
-----END PGP SIGNATURE-----


More information about the Kde-optimize mailing list