Workaround Qt bug that causes events to forward to the parent incorrectly

This commit is contained in:
James Rowe 2019-09-24 21:28:57 -06:00
parent 586b8e8b46
commit 68052de8a0
2 changed files with 28 additions and 10 deletions

View file

@ -121,7 +121,7 @@ signals:
class OpenGLWindow : public QWindow {
Q_OBJECT
public:
explicit OpenGLWindow(QWindow* parent, QOpenGLContext* shared_context);
explicit OpenGLWindow(QWindow* parent, QWidget* event_handler, QOpenGLContext* shared_context);
~OpenGLWindow();
@ -134,6 +134,7 @@ protected:
private:
QOpenGLContext* context;
QWidget* event_handler;
};
class GRenderWindow : public QWidget, public Frontend::EmuWindow {