diff options
Diffstat (limited to 'src-qt5/desktop-utils/lumina-photo/PhotoView.h')
-rw-r--r-- | src-qt5/desktop-utils/lumina-photo/PhotoView.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-photo/PhotoView.h b/src-qt5/desktop-utils/lumina-photo/PhotoView.h index 521e705d..a04a70d0 100644 --- a/src-qt5/desktop-utils/lumina-photo/PhotoView.h +++ b/src-qt5/desktop-utils/lumina-photo/PhotoView.h @@ -1,6 +1,7 @@ #pragma once #include <QGraphicsView> +#include <QEvent> class PhotoView : public QGraphicsView { @@ -15,4 +16,11 @@ class PhotoView : public QGraphicsView private: const double scaleFactor = 1.25; const double invScaleFactor = 1 / 1.25; + bool eventFilter(QObject *, QEvent *event); + void mouseDoubleClickEvent(QMouseEvent *event); + bool isFit = true; + + signals: + void nextImage(); + void prevImage(); }; |