Code review comment for lp:~yohanboniface/ubuntu-calendar-app/AgendaView

Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :

 + Component.onCompleted: {
48 + mainModel.addModelChangeListener(buildList);
49 + }
50 +
51 + function buildList () {
52 + eventModel.clear();

Now that you are using EventListModel {}, you should be able to use it directly with your ListView.

And you should be able to achieve following.
// 3. no way to cheat like adding on the fly a method or property to the ListItem while looping

« Back to merge proposal