From ed15eba453b7ddd0f4962c2d381fe40751973131 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 29 Mar 2025 12:19:15 +0530 Subject: Handle default for webview id --- src/widgets/WebViewStack.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/widgets/WebViewStack.hpp') diff --git a/src/widgets/WebViewStack.hpp b/src/widgets/WebViewStack.hpp index f9ce397..03581e8 100644 --- a/src/widgets/WebViewStack.hpp +++ b/src/widgets/WebViewStack.hpp @@ -38,6 +38,7 @@ public: WebViewId current_webview_id(); uint32_t count(); QUrl current_url(); + void set_webview_url(const QUrl &url, WebViewId webview_id); bool has_webview(WebViewId webview_id); @@ -53,7 +54,8 @@ protected: WebView *get_webview(WebViewId webview_id); public slots: - void open_url(const QUrl &url, OpenType open_type = OpenType::OpenUrl); + void open_url(const QUrl &url, OpenType open_type = OpenType::OpenUrl, + WebViewId webview_id = 0); void webview_history_back(WebViewId webview_id, qsizetype history_index); void webview_history_forward(WebViewId webview_id, qsizetype history_index); void close(WebViewId webview_id); -- cgit v1.3.1