Workaround Qt bug that causes events to forward to the parent incorrectly
This commit is contained in:
parent
586b8e8b46
commit
68052de8a0
2 changed files with 28 additions and 10 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue