> Where do you save the collection after the user select or unselect it? > This should be saved back in the model.
If user change the color then I save collection like this
136 + var collection = root.model.collection(modelData.collectionId); 137 + collection.color = color; 138 + root.model.saveCollection(collection); 139 + })
But if user just select and unselect the collection for filtering event. I just do the following.
152 + onCheckedChanged: { 153 + modelData.setExtendedMetaData("collection-selected",checkBox.checked) 154 + }
« Back to merge proposal
> Where do you save the collection after the user select or unselect it?
> This should be saved back in the model.
If user change the color then I save collection like this
136 + var collection = root.model. collection( modelData. collectionId) ; saveCollection( collection) ;
137 + collection.color = color;
138 + root.model.
139 + })
But if user just select and unselect the collection for filtering event. I just do the following.
152 + onCheckedChanged: { setExtendedMeta Data("collectio n-selected" ,checkBox. checked)
153 + modelData.
154 + }