Skip to content

Instantly share code, notes, and snippets.

@benlau
Created January 1, 2016 09:28
Show Gist options
  • Save benlau/9012496f4d0478a76aba to your computer and use it in GitHub Desktop.
Save benlau/9012496f4d0478a76aba to your computer and use it in GitHub Desktop.
ListVIew {
id : listView;
signal removeClicked(int index);
signal clicked(int index);
delegate: YourItem {
onRemoveClicked: listView.removeClicked(model.index);
onClicked: listView.clicked(model.index);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment