Qt: Fix window close in nogui mode

This commit is contained in:
Connor McLaughlin
2022-08-29 20:31:29 +10:00
parent 28363af3ff
commit 837495d90f
5 changed files with 37 additions and 24 deletions

View File

@@ -5,6 +5,8 @@
#include <QtWidgets/QWidget>
#include <optional>
class QCloseEvent;
class DisplayWidget final : public QWidget
{
Q_OBJECT
@@ -24,6 +26,8 @@ public:
void updateRelativeMode(bool enabled);
void updateCursor(bool hidden);
void handleCloseEvent(QCloseEvent* event);
Q_SIGNALS:
void windowResizedEvent(int width, int height, float scale);
void windowRestoredEvent();