+ 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
+ Component. onCompleted: { addModelChangeL istener( buildList) ;
48 + mainModel.
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