openImageViewer(): take an optional callback

This commit is contained in:
miruka
2020-07-19 20:33:40 -04:00
parent 066102e64d
commit 2001fcf70a
3 changed files with 6 additions and 5 deletions

View File

@@ -66,11 +66,11 @@ HMxcImage {
acceptedButtons: Qt.LeftButton
acceptedModifiers: Qt.NoModifier
gesturePolicy: TapHandler.ReleaseWithinBounds
onTapped:
eventList.selectedCount ?
eventDelegate.toggleChecked() :
eventList.openImageViewer(singleMediaInfo)
}
TapHandler {