On Fri, Oct 17, 2008 at 11:33 AM, Ville M. Vainio <[EMAIL PROTECTED]> wrote:
> 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. Yes, I think you are correct. > 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. This would be my preference. It's the only simple way. Drawing only visible nodes creates significant complications when the user asks to expand the tree: the newly visible nodes must be added to the tree, and this will likely cause cascades of expansion events that have to be dealt with very carefully. This was an apparently insurmountable problem with wxTreeCtrl, and I don't want to deal with this now. There are many more important things to do first. Edward --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
