diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-29 12:19:15 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-29 12:20:11 +0530 |
| commit | ed15eba453b7ddd0f4962c2d381fe40751973131 (patch) | |
| tree | 29f8dea45aeb882adfe600b24d789d24da7354dc /src/widgets/WebViewStack.hpp | |
| parent | bcecbced7e1af9d99443a7e823f18328c7943f09 (diff) | |
| download | null-browser-ed15eba453b7ddd0f4962c2d381fe40751973131.tar.gz null-browser-ed15eba453b7ddd0f4962c2d381fe40751973131.zip | |
Handle default for webview id
Diffstat (limited to '')
| -rw-r--r-- | src/widgets/WebViewStack.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
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); |
