Model/View... where to store the data? (was Re: GDB/MI (Was: Embedded development)
Roberto Raggi
roberto at kdevelop.org
Wed Sep 14 16:36:03 UTC 2005
Hi!
On Wednesday 14 September 2005 16:29, Adam Treat wrote:
> On Wednesday 14 September 2005 10:08 am, Roberto Raggi wrote:
> Ok, I see we have a problem of communication. Actually, KDevItemModel
> doesn't store it's own data. That is given to KDevItemCollection which is
> not a subclass of an Qt class. KDevItem stores a reference to the root
> KDevItemCollection ;)
exactly
> So, we can store the data outside the model in some arbitrary class. But
> the point is __we certainly do not want to store it in the view__!
YEAP :-)
>
> Now, a question to make sure we are on the same page:
>
> I have a class in my documentmodel called KDevFileItem which subclasses
> KDevItemCollection. This class stores the URL reference for the file.
>
> Is this correct? Again, KDevItemCollection subclasses no Qt class and it
> does store the data for KDevItemModel.
yes it is
ciao robe
More information about the KDevelop-devel
mailing list