diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-30 15:48:01 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-30 15:48:01 +0530 |
| commit | e690963fb6c0240171236fc2d669f95ee26b6798 (patch) | |
| tree | 367a74e7d23c44ff6d9a576dc08e34cf43e2d65c /src/widgets/BrowserWindow.hpp | |
| parent | 997891b27d17377111f484c62ba41caf15475d72 (diff) | |
| download | null-browser-e690963fb6c0240171236fc2d669f95ee26b6798.tar.gz null-browser-e690963fb6c0240171236fc2d669f95ee26b6798.zip | |
Remove from router on window close
Diffstat (limited to 'src/widgets/BrowserWindow.hpp')
| -rw-r--r-- | src/widgets/BrowserWindow.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/widgets/BrowserWindow.hpp b/src/widgets/BrowserWindow.hpp index 364aa12..cab7721 100644 --- a/src/widgets/BrowserWindow.hpp +++ b/src/widgets/BrowserWindow.hpp @@ -9,6 +9,8 @@ using WindowId = uint64_t; class BrowserWindow : public QMainWindow { + Q_OBJECT + public: BrowserWindow(const Configuration &configuration); @@ -18,6 +20,11 @@ public: bool on_window_key_event(QKeyEvent *event); + void closeEvent(QCloseEvent * /*event*/) override { emit closed(); } + +signals: + void closed(); + private: WindowMediator *input_mediator; const Configuration &configuration; |
