Re: [PyKDE] MVC Question

2006-10-11 Thread Andreas Pakulat
On 11.10.06 13:26:27, Matt Chambers wrote: > Question now is, I can update the data no problem. How can I find out what > indexes to use when emiting a dataChanged signal > if I update the underlying data in an elementtree ? Well, that depends on how you store the elementtree. Your model below l

Re: [PyKDE] MVC Question

2006-10-11 Thread Matt Chambers
Andreas Pakulat wrote: On 06.10.06 10:14:17, Matt Chambers wrote: Thanks, that works but then then any branches you have open in the tree view closed. I guess there is no way to maintain the open/close status of existing branches, and default new ones to open? Hmm, th

Re: [PyKDE] MVC Question

2006-10-06 Thread David Boddie
On Friday 06 October 2006 21:19:27 +0200, Andreas Pakulat wrote: > On 06.10.06 10:14:17, Matt Chambers wrote: > > Thanks, that works but then then any branches you have open in the tree > > view closed.   I guess there is no way to maintain > > the open/close status of existing branches, and defaul

Re: [PyKDE] MVC Question

2006-10-06 Thread Andreas Pakulat
On 06.10.06 10:14:17, Matt Chambers wrote: > Thanks, that works but then then any branches you have open in the tree view > closed. I guess there is no way to maintain > the open/close status of existing branches, and default new ones to open? Hmm, there's API to set the status of a given model

Re: [PyKDE] MVC Question

2006-10-06 Thread Matt Chambers
Thanks, that works but then then any branches you have open in the tree view closed.   I guess there is no way to maintain the open/close status of existing branches, and default new ones to open? Matt Andreas Pakulat wrote: On 06.10.06 08:30:27, M.Chambers wrote: Hi everyone, th

Re: [PyKDE] MVC Question

2006-10-06 Thread Andreas Pakulat
On 06.10.06 08:30:27, M.Chambers wrote: > Hi everyone, thanks for your past advice. I have a abstract model and a > qtreeview setup to use an cElementTree object as the underlying data > source. Works awesome, and its very fast. What happens when I want to > replace the elelentreee object with a

[PyKDE] MVC Question

2006-10-06 Thread M.Chambers
Hi everyone, thanks for your past advice. I have a abstract model and a qtreeview setup to use an cElementTree object as the underlying data source. Works awesome, and its very fast. What happens when I want to replace the elelentreee object with a newer one which may or may not contain new data