promote the gleswidget to centralwidget via the .ui file

This commit is contained in:
Joakim L. Gilje
2021-11-30 21:18:25 +01:00
parent 7e38ff7d4d
commit 6c2d7bef4a
4 changed files with 17 additions and 31 deletions

View File

@@ -9,8 +9,6 @@ namespace Ui {
class MainWindow;
}
class GLESWidget;
class MainWindow : public QMainWindow
{
Q_OBJECT
@@ -49,17 +47,7 @@ protected:
void keyPressEvent(QKeyEvent* event) override;
void keyReleaseEvent(QKeyEvent* event) override;
private:
struct DeltaPos {
int x = 0;
int y = 0;
int z = 0;
};
Ui::MainWindow *ui;
DeltaPos mouseDelta;
QWindow* sdl_wrapped_window;
QWidget* sdl_wrapped_widget;
GLESWidget* hw_widget;
QTimer* sdl_timer;
};
#endif // QT_MAINWINDOW_HPP