mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
c49f044645
commit
b0ec7146a0
2 changed files with 6 additions and 0 deletions
|
@ -1034,3 +1034,8 @@ void DiveListView::updateLastImageTimeOffset(const int offset)
|
|||
s.beginGroup("MainWindow");
|
||||
s.setValue("LastImageTimeOffset", offset);
|
||||
}
|
||||
|
||||
void DiveListView::mouseDoubleClickEvent(QMouseEvent * event)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue