diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-07-25 17:03:32 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-07-25 17:03:32 +0530 |
| commit | 51be15cd7c9f39276f27d416356744041e62c22c (patch) | |
| tree | 0ba09371265f4b3d9923b60308d9aecce8c37e20 /src/widgets/WebViewStack.cpp | |
| parent | 7e3b6182c4581fcb39ab1d0ef2eb07fe9fa1d8b6 (diff) | |
| download | null-browser-51be15cd7c9f39276f27d416356744041e62c22c.tar.gz null-browser-51be15cd7c9f39276f27d416356744041e62c22c.zip | |
Add edge decoration widgets
Diffstat (limited to 'src/widgets/WebViewStack.cpp')
| -rw-r--r-- | src/widgets/WebViewStack.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/widgets/WebViewStack.cpp b/src/widgets/WebViewStack.cpp index 6bbd5b5..45d9c88 100644 --- a/src/widgets/WebViewStack.cpp +++ b/src/widgets/WebViewStack.cpp @@ -12,9 +12,10 @@ #include "WindowActionRouter.hpp" #include "events/PermissionRequestedEvent.hpp" #include "events/UrlChangedEvent.hpp" + #include "widgets/WebViewStack.hpp" -static WebViewId next_webview_id = 1; +WebViewId WebViewStack::next_webview_id = 1; WebViewStack::WebViewStack(const Configuration *configuration, QWebEngineProfile *profile, QWidget *parent) @@ -46,7 +47,7 @@ void WebViewStack::open_url(const QUrl &url, OpenType open_type, WebViewId webvi } WebView *WebViewStack::create_new_webview(const QUrl &url, bool focus) { - auto *webview = new WebView(next_webview_id++, profile); + auto *webview = new WebView(WebViewStack::next_webview_id++, profile); webview->setUrl(url); layout->addWidget(webview); webview_list.append(webview); |
