subsurface/desktop-widgets/divepicturewidget.h

22 lines
489 B
C
Raw Normal View History

// SPDX-License-Identifier: GPL-2.0
#ifndef DIVEPICTUREWIDGET_H
#define DIVEPICTUREWIDGET_H
#include <QListView>
class DivePictureWidget : public QListView {
Q_OBJECT
public:
DivePictureWidget(QWidget *parent);
protected:
void mouseDoubleClickEvent(QMouseEvent *event) override;
void mousePressEvent(QMouseEvent *event) override;
void wheelEvent(QWheelEvent *event) override;
signals:
void photoDoubleClicked(const QString filePath);
void zoomLevelChanged(int delta);
};
#endif