mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-03 15:43:09 +00:00
a1e6ac2e09
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>
25 lines
546 B
C++
25 lines
546 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef DIVEPICTUREWIDGET_H
|
|
#define DIVEPICTUREWIDGET_H
|
|
|
|
#include <QAbstractTableModel>
|
|
#include <QListView>
|
|
#include <QThread>
|
|
#include <QFuture>
|
|
|
|
class DivePictureWidget : public QListView {
|
|
Q_OBJECT
|
|
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);
|
|
};
|
|
|
|
class DivePictureThumbnailThread : public QThread {
|
|
};
|
|
|
|
#endif
|