diff options
Diffstat (limited to 'mobile-widgets/qml/DiveList.qml')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index 7ecd9287a..f09609a73 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -74,6 +74,18 @@ Kirigami.ScrollablePage { } } } + // use this to select a dive without switching to dive details; instead open context drawer + onPressAndHold: { + view.currentIndex = index + if (isTrip) { + manager.appendTextToLog("press and hold on trip is same as click") + manager.toggle(model.row) + } else { + manager.appendTextToLog("press and hold on dive; open context drawer") + manager.selectRow(model.row) + contextDrawer.open() + } + } // first we look at the trip Item { |