Hi,
 
> It is a good practice to load the minimal amount of data in a
> ListModel. I don't know which app you are developing, but for an
> example TODO list app, the main page would only load (from a
> storage, like a database), only the title and id of the TODO
> entries. Clicking on an entry will trigger the load of the full TODO
> entry from the database, based on the id.

That's exactly what I'm doing right now (a Tasks app + just load the minimum 
amount of data required for the list + load the full Task properties when 
entering the "DetailsView").


> Usual application goes from less detailed to more detailed
> information (all TODO entries -> one TODO entry, all friends -> one
> friend's wall -> one post etc.), so I wonder why you have to modify
> the ListModel when you pushed the page ?

Isn't that what you suggested in your previous answer (when I was trying to get 
notifiable properties) ?
I'm confused (and also sorry, because I really guess it's a very trivial issue 
:( )

 
> If you want to modify the model nevertheless, I think that the best
> way would be to provide a signal in your sub-page, that is emitted
> and caught in the main page in order to call model.set. This is
> better than passing the model, as the sub-page and page are more
> separated.

Ok, I'll keep that in mind, thanks :)

Thanks again...

-- 
François
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to