On Wed, Oct 1, 2008 at 1:37 AM, Edward K. Ream <[EMAIL PROTECTED]> wrote:

>> http://www.potu.com/man/doc.trolltech.com/4.0/qabstractitemmodel.html
>
> Sure.  The question is, how will the widget react to massive changes
> provoked by c.frame.redraw?

I'm sure it will be a breeze. That's what trolltech people are paid to
do, and it happens entirely on the C++ side.

Since we are constructing the whole tree from the scratch, in should
be easy to implement.

Here's the code that does the trick in qleolite:

55          def populate_tree(self, parent=None):
56                      """ Render vnodes in tree """
57              
58                      for p in c.allNodes_iter():
59                          parent = self.items.get(p.parent().v,  
self.treeWidget)
60                          it = QTreeWidgetItem(parent)
61                          self.items[p.v] = it
62                          self.treeitems[it] = p.t
63                          it.setText(0, p.headString())
64              

-- 
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 leo-editor@googlegroups.com
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