summary refs log tree commit diff
path: root/include/ImageOverlayDialog.h
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-08-06 10:35:32 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-08-06 10:35:32 +0300
commit4fccc6270efca35f860fc39bc241cb0b0e032dff (patch)
treec6d55d6faa08f220a8cc5b20454de0be0128b842 /include/ImageOverlayDialog.h
parentThe emoji panel shouldn't steal focus from other windows (diff)
downloadnheko-4fccc6270efca35f860fc39bc241cb0b0e032dff.tar.xz
Fix full screen image viewer on macOS sierra
Diffstat (limited to 'include/ImageOverlayDialog.h')
-rw-r--r--include/ImageOverlayDialog.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/ImageOverlayDialog.h b/include/ImageOverlayDialog.h

index 6763b9d1..287b2d1b 100644 --- a/include/ImageOverlayDialog.h +++ b/include/ImageOverlayDialog.h
@@ -21,14 +21,12 @@ #include <QMouseEvent> #include <QPixmap> -class ImageOverlayDialog : public QDialog +class ImageOverlayDialog : public QWidget { Q_OBJECT public: ImageOverlayDialog(QPixmap image, QWidget *parent = nullptr); - void reject() override; - protected: void mousePressEvent(QMouseEvent *event) override; void paintEvent(QPaintEvent *event) override; @@ -36,9 +34,6 @@ protected: signals: void closing(); -private slots: - void closeDialog(); - private: void scaleImage(int width, int height); @@ -47,4 +42,5 @@ private: QRect content_; QRect close_button_; + QRect screen_; };