From 686b87e903247d27a8dfc2ce27f9f665dc1fdac2 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 22 Jul 2017 13:36:54 -0700 Subject: QML UI: Download from DC: respond to click on checkbox Strangely, a click/tap anywhere else worked as expected, but if you hit exactly on the checkbox, the status change wasn't propagated. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DownloadedDiveDelegate.qml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mobile-widgets/qml/DownloadedDiveDelegate.qml') diff --git a/mobile-widgets/qml/DownloadedDiveDelegate.qml b/mobile-widgets/qml/DownloadedDiveDelegate.qml index 72e8dd3b9..34c567a0c 100644 --- a/mobile-widgets/qml/DownloadedDiveDelegate.qml +++ b/mobile-widgets/qml/DownloadedDiveDelegate.qml @@ -56,6 +56,10 @@ Kirigami.AbstractListItem { visible: diveIsSelected && diveIsSelected.checked } } + onClicked: { + console.log("Clicked on the checkbox of item " + index) + importModel.selectRow(index) + } } Item { id: diveListEntry -- cgit v1.2.3-70-g09d2