2017-04-27 18:26:05 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2014-05-30 17:38:27 +00:00
|
|
|
#ifndef DIVEPICTUREWIDGET_H
|
|
|
|
#define DIVEPICTUREWIDGET_H
|
|
|
|
|
|
|
|
#include <QAbstractTableModel>
|
|
|
|
#include <QListView>
|
|
|
|
#include <QThread>
|
2015-03-10 17:22:34 +00:00
|
|
|
#include <QFuture>
|
2015-02-26 13:39:42 +00:00
|
|
|
|
2014-06-03 23:48:59 +00:00
|
|
|
class DivePictureWidget : public QListView {
|
2014-05-30 17:38:27 +00:00
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2014-05-30 17:50:49 +00:00
|
|
|
DivePictureWidget(QWidget *parent);
|
2015-11-03 20:17:50 +00:00
|
|
|
protected:
|
|
|
|
void mousePressEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
|
|
|
|
|
2014-06-27 12:16:55 +00:00
|
|
|
signals:
|
|
|
|
void photoDoubleClicked(const QString filePath);
|
|
|
|
private
|
|
|
|
slots:
|
|
|
|
void doubleClicked(const QModelIndex &index);
|
2014-05-30 17:38:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class DivePictureThumbnailThread : public QThread {
|
|
|
|
};
|
|
|
|
|
2014-06-27 12:16:55 +00:00
|
|
|
#endif
|