aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/WebViewStack.cpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-07-25 17:03:32 +0530
committerAkshay Nair <phenax5@gmail.com>2025-07-25 17:03:32 +0530
commit51be15cd7c9f39276f27d416356744041e62c22c (patch)
tree0ba09371265f4b3d9923b60308d9aecce8c37e20 /src/widgets/WebViewStack.cpp
parent7e3b6182c4581fcb39ab1d0ef2eb07fe9fa1d8b6 (diff)
downloadnull-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.cpp5
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);