summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DownloadedDiveDelegate.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-22 13:36:54 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-22 16:15:00 -0700
commit686b87e903247d27a8dfc2ce27f9f665dc1fdac2 (patch)
tree01b9d76a0809db3bf4ca334a4b9f7531a80d20ff /mobile-widgets/qml/DownloadedDiveDelegate.qml
parent05a3bbe65c6c96caf6076aa4f81102fbc74850fa (diff)
downloadsubsurface-686b87e903247d27a8dfc2ce27f9f665dc1fdac2.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DownloadedDiveDelegate.qml')
-rw-r--r--mobile-widgets/qml/DownloadedDiveDelegate.qml4
1 files changed, 4 insertions, 0 deletions
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