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

This commit is contained in:
James Rowe
2019-11-09 13:12:30 -07:00
parent 586b8e8b46
commit 68052de8a0
2 changed files with 28 additions and 10 deletions
+2 -1
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 {