I have a ListModel and in my delegate I display the name of each element
and next to it a Switch. Then I want to call a function which needs to
know if the Switch for each element is checked or not. How can I do this?