aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/divelistview.h
diff options
context:
space:
mode:
authorGravatar Joakim Bygdell <j.bygdell@gmail.com>2017-01-28 12:16:45 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-01-28 07:20:03 -0800
commitb0ec7146a060b6326dd6347760ad010571707497 (patch)
tree0cef31ecc06f49ba1a7a9a5d7eaaf324a851369f /desktop-widgets/divelistview.h
parentc49f044645ec36e2103a307163d21da726541753 (diff)
downloadsubsurface-b0ec7146a060b6326dd6347760ad010571707497.tar.gz
Ignore double clicks on the divelist
Fixes #170 on GitHub Simple catch function for double click events in the divelist, prevents users from trying to edit the divenumber ithe wrong way. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Diffstat (limited to 'desktop-widgets/divelistview.h')
-rw-r--r--desktop-widgets/divelistview.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop-widgets/divelistview.h b/desktop-widgets/divelistview.h
index 2554725b7..fc8e48f31 100644
--- a/desktop-widgets/divelistview.h
+++ b/desktop-widgets/divelistview.h
@@ -21,6 +21,7 @@ class DiveListView : public QTreeView {
public:
DiveListView(QWidget *parent = 0);
~DiveListView();
+ void mouseDoubleClickEvent(QMouseEvent * event);
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
void currentChanged(const QModelIndex &current, const QModelIndex &previous);
void reload(DiveTripModel::Layout layout, bool forceSort = true);