From 056b0b16947ac19a0c425aa9d2ff8f589378d3bc Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Tue, 18 Mar 2025 20:52:36 +0530 Subject: Add keymap evaluation with strict event filter --- include/widgets/WebViewStack.hpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'include/widgets/WebViewStack.hpp') diff --git a/include/widgets/WebViewStack.hpp b/include/widgets/WebViewStack.hpp index 34b1658..c315251 100644 --- a/include/widgets/WebViewStack.hpp +++ b/include/widgets/WebViewStack.hpp @@ -2,11 +2,11 @@ #include #include -#include #include #include "Configuration.hpp" #include "completion/TabsModel.hpp" +#include "widgets/WebView.hpp" enum OpenType { OpenUrl, OpenUrlInTab, OpenUrlInBgTab, OpenUrlInWindow }; @@ -24,6 +24,7 @@ public: void openUrl(QUrl url, OpenType openType = OpenType::OpenUrl); std::vector urls(); + QList getTabList(); u_int32_t currentWebViewIndex(); u_int32_t count(); QUrl currentUrl(); @@ -35,11 +36,9 @@ public: void close(long index); void closeCurrent(); - QList getTabList(); - private: void setCurrentUrl(QUrl url); - QWebEngineView *createNewWebView(QUrl url, bool focus = false); + WebView *createNewWebView(QUrl url, bool focus = false); private slots: void onNewWebViewRequest(QWebEngineNewWindowRequest &request); @@ -48,5 +47,5 @@ private: const Configuration *configuration; QWebEngineProfile *profile; QStackedLayout *layout; - QList webViewList; + QList webViewList; }; -- cgit v1.3.1