aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/divepicturewidget.h
blob: 267bfaeaa2c4d9b6753697dc907df846485ca612 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// 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);
	void mousePressEvent(QMouseEvent *event);
	void wheelEvent(QWheelEvent *event);

signals:
	void photoDoubleClicked(const QString filePath);
	void zoomLevelChanged(int delta);
};

class DivePictureThumbnailThread : public QThread {
};

#endif