aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/BrowserWindow.hpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/widgets/BrowserWindow.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/widgets/BrowserWindow.hpp b/src/widgets/BrowserWindow.hpp
index 207524a..92eafa7 100644
--- a/src/widgets/BrowserWindow.hpp
+++ b/src/widgets/BrowserWindow.hpp
@@ -46,6 +46,13 @@ public:
webview_stack->open_url(url, open_type, webview_id);
}
+ void set_html(const QString &html, WebViewId webview_id) {
+ if (decorations->has_webview(webview_id))
+ decorations->set_html(html, webview_id);
+ else
+ webview_stack->set_html(html, webview_id);
+ }
+
bool on_window_key_event(QKeyEvent *event);
void closeEvent(QCloseEvent * /*event*/) override { emit closed(); };