diff options
Diffstat (limited to '')
| -rw-r--r-- | src/widgets/WebViewStack.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/widgets/WebViewStack.cpp b/src/widgets/WebViewStack.cpp index 45d9c88..698cb88 100644 --- a/src/widgets/WebViewStack.cpp +++ b/src/widgets/WebViewStack.cpp @@ -318,3 +318,13 @@ void WebViewStack::scroll_to_bottom(WebViewId webview_id) { webview->scroll_to_bottom(); } + +void WebViewStack::set_html(const QString &html, WebViewId webview_id) { + auto *webview = get_webview(webview_id); + if (webview == nullptr) { + qDebug() << "Webview does not exist"; + return; + } + + webview->setHtml(html); +} |
