diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-29 11:45:18 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-29 11:45:18 +0530 |
| commit | bcecbced7e1af9d99443a7e823f18328c7943f09 (patch) | |
| tree | 612fac477acfa38358e15916bd4a44f386dc9206 /src/widgets/BrowserWindow.hpp | |
| parent | f7392096d2d84be7143947d386528bf4f487ee83 (diff) | |
| download | null-browser-bcecbced7e1af9d99443a7e823f18328c7943f09.tar.gz null-browser-bcecbced7e1af9d99443a7e823f18328c7943f09.zip | |
Add window action router for multi-window
Diffstat (limited to '')
| -rw-r--r-- | src/widgets/BrowserWindow.hpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/widgets/BrowserWindow.hpp b/src/widgets/BrowserWindow.hpp new file mode 100644 index 0000000..6036ec1 --- /dev/null +++ b/src/widgets/BrowserWindow.hpp @@ -0,0 +1,20 @@ +#pragma once + +#include <QMainWindow> + +#include "Configuration.hpp" +#include "WindowMediator.hpp" +#include "utils.hpp" + +class BrowserWindow : public QMainWindow { +public: + BrowserWindow(const Configuration &configuration); + + DEFINE_GETTER(mediator, input_mediator) + + bool on_window_key_event(QKeyEvent *event); + +private: + WindowMediator *input_mediator; + const Configuration &configuration; +}; |
