diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-11 23:02:44 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-12 00:13:47 +0530 |
| commit | 35d8464f8975ab35c1e2f1a076302d9f95bfb22c (patch) | |
| tree | 0b4e26e36fb27dd32c0e174e4ef829f1f77c1daf /include/widgets/MainWindow.hpp | |
| parent | 0d5b7cb2a8bea5d91c58dd40f80d60bca384b766 (diff) | |
| download | null-browser-35d8464f8975ab35c1e2f1a076302d9f95bfb22c.tar.gz null-browser-35d8464f8975ab35c1e2f1a076302d9f95bfb22c.zip | |
Refactor browsermanager to webviewstack
Diffstat (limited to '')
| -rw-r--r-- | include/widgets/MainWindow.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/widgets/MainWindow.hpp b/include/widgets/MainWindow.hpp index 4731fe4..99a3895 100644 --- a/include/widgets/MainWindow.hpp +++ b/include/widgets/MainWindow.hpp @@ -6,8 +6,8 @@ #include <QWebEngineView> #include "LuaRuntime.hpp" -#include "widgets/BrowserManager.hpp" #include "widgets/InputLine.hpp" +#include "widgets/WebViewStack.hpp" class EvaluationType { public: @@ -20,10 +20,12 @@ class MainWindow : public QMainWindow { public: MainWindow(); -protected: +private: void keyPressEvent(QKeyEvent *event) override; void onInputSubmit(QString input); + void evaluateCommand(QString command); + void hideInputLine(); void showInputLine(); void showURLInput(QString url, OpenType openType); @@ -32,7 +34,7 @@ protected: void setEvaluationType(EvaluationType *); private: - BrowserManager *browserManager; + WebViewStack *webViewStack; InputLine *inputLine; LuaRuntime *luaRuntime; QStackedLayout *layout; |
