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
@ -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…
x
Reference in New Issue
Block a user