Obviously the tree redraw still draws the whole tree (since it doesn't
use the optimized approach yet).

In current revision, navigating around the tree with cursor keys uses
the "fast route" and doesn't redraw the tree. This has the problem
that once the tree *is* redrawn, the expanded status of the nodes is
forgotten.

I guess at this time either

1) The tree redrawing should be written in optimized fashion (the tk
way), and be called for expand (if not contract)

OR

2) Let the tree redrawing stay as it is (i.e. when the tree is dirty -
NOT on expand/contract, redraw the whole tree), but update the
expanded/contracted status on itemCollapsed / itemExpanded signals of
QTreeWidget.

In any case, the current behaviour is a bit surprising. It's not a big
problem, though, and this should already be "usable", if not as fast
as it could be.

-- 
Ville M. Vainio
http://tinyurl.com/vainio

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to