Fix full screen image viewer on macOS sierra

This commit is contained in:
Konstantinos Sideris 2017-08-06 10:35:32 +03:00
parent 93e8297b61
commit 4fccc6270e
2 changed files with 17 additions and 27 deletions

View file

@ -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_;
};