diff options
author | Stefan Fuchs <sfuchs@gmx.de> | 2017-11-29 12:40:06 +0100 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2017-12-01 09:44:34 +0100 |
commit | a1e6ac2e0942a3950f76432e8dcf3c195c281052 (patch) | |
tree | 8d37be8fc2b708aea41f04788f064435d828bae8 /desktop-widgets/divepicturewidget.h | |
parent | 8ef87e618afd1ec943c0f42a852b3b393c1e2113 (diff) | |
download | subsurface-a1e6ac2e0942a3950f76432e8dcf3c195c281052.tar.gz |
Dive picture handling: Re enable multi select, improve mouse events
Some improvements for the dive picture tab and dive pictures in profile:
- Bugfix mouse event in profile: Only Left-click will open picture
- Bugfix mouse events in picture tab:
- Re-enable context menu (Windows bug mainly)
- Re-enable multi select in a nice way
- Only double-left-click will open picture
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'desktop-widgets/divepicturewidget.h')
-rw-r--r-- | desktop-widgets/divepicturewidget.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/desktop-widgets/divepicturewidget.h b/desktop-widgets/divepicturewidget.h index 7980acc54..09d4608c4 100644 --- a/desktop-widgets/divepicturewidget.h +++ b/desktop-widgets/divepicturewidget.h @@ -12,13 +12,11 @@ class DivePictureWidget : public QListView { public: DivePictureWidget(QWidget *parent); protected: + void mouseDoubleClickEvent(QMouseEvent *event) Q_DECL_OVERRIDE; void mousePressEvent(QMouseEvent *event) Q_DECL_OVERRIDE; signals: void photoDoubleClicked(const QString filePath); -private -slots: - void doubleClicked(const QModelIndex &index); }; class DivePictureThumbnailThread : public QThread { |