Fix full screen image viewer on macOS sierra
This commit is contained in:
parent
93e8297b61
commit
4fccc6270e
2 changed files with 17 additions and 27 deletions
|
|
@ -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_;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue