Re: rows-reordered signal not emitted



Florian Schaefer said:
I've got a Tree with basically just names in it. The relationships
between those names are stored in a database. What I need to do: If the
user drags a name around, I need to update my database accordingly.

Rather than use the TreeModel as a synchronized copy of another model (the
database), why not create a custom TreeModel which merely proxies the
TreeModel interface to the database?  It's more work up front, but it sounds
like it would alleviate a lot of your problems.

(i'm assuming that the ordering is an inherent part of your data.  if it's
not, you may consider abstracting it out. ;-)


-- 
muppet <scott at asofyet dot org>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]