Changeset b0ec714 in subsurface


Ignore:
Timestamp:
Jan 28, 2017, 7:20:03 AM (3 weeks ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
279ba58
Parents:
c49f0446
git-author:
Joakim Bygdell <j.bygdell@…> (01/28/17 03:16:45)
git-committer:
Dirk Hohndel <dirk@…> (01/28/17 07:20:03)
Message:

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@…>

Location:
desktop-widgets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • desktop-widgets/divelistview.cpp

    rf3cf952 rb0ec714  
    10351035        s.setValue("LastImageTimeOffset", offset);
    10361036}
     1037
     1038void DiveListView::mouseDoubleClickEvent(QMouseEvent * event)
     1039{
     1040        return;
     1041}
  • desktop-widgets/divelistview.h

    r7be962b rb0ec714  
    2222        DiveListView(QWidget *parent = 0);
    2323        ~DiveListView();
     24        void mouseDoubleClickEvent(QMouseEvent * event);
    2425        void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
    2526        void currentChanged(const QModelIndex &current, const QModelIndex &previous);
Note: See TracChangeset for help on using the changeset viewer.