diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-08 18:16:51 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-08 18:16:51 +0530 |
| commit | b7ac4dc7a20c624a343c946c5decd1b84eab2b82 (patch) | |
| tree | 6e7efa381546244da8942ec023d94db634b73948 /include/MainWindow.hpp | |
| parent | ecd3ccde166910e3667b7b1a064e9c6db52d1646 (diff) | |
| download | null-browser-b7ac4dc7a20c624a343c946c5decd1b84eab2b82.tar.gz null-browser-b7ac4dc7a20c624a343c946c5decd1b84eab2b82.zip | |
Basic single view browser with url input
Diffstat (limited to '')
| -rw-r--r-- | include/MainWindow.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/MainWindow.hpp b/include/MainWindow.hpp new file mode 100644 index 0000000..20e07c0 --- /dev/null +++ b/include/MainWindow.hpp @@ -0,0 +1,21 @@ +#pragma once + +#include <QMainWindow> +#include <QObject> +#include <QWebEngineView> + +#include "CommandInput.hpp" + +class MainWindow : public QMainWindow { +public: + MainWindow(); + +protected: + void keyPressEvent(QKeyEvent *event) override; + void toggleURLInput(); + void evaluateCommand(QString command); + +private: + QWebEngineView *web; + CommandInput *urlInputUI; +}; |
