diff options
author | Joakim Bygdell <j.bygdell@gmail.com> | 2017-01-28 12:16:45 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-01-28 07:20:03 -0800 |
commit | b0ec7146a060b6326dd6347760ad010571707497 (patch) | |
tree | 0cef31ecc06f49ba1a7a9a5d7eaaf324a851369f /desktop-widgets/divelistview.h | |
parent | c49f044645ec36e2103a307163d21da726541753 (diff) | |
download | subsurface-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.h | 1 |
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 ¤t, const QModelIndex &previous); void reload(DiveTripModel::Layout layout, bool forceSort = true); |