diff options
Diffstat (limited to '')
| -rw-r--r-- | src/widgets/EdgeDecoration.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/widgets/EdgeDecoration.cpp b/src/widgets/EdgeDecoration.cpp index 8880294..7f5a59f 100644 --- a/src/widgets/EdgeDecoration.cpp +++ b/src/widgets/EdgeDecoration.cpp @@ -65,3 +65,13 @@ void EdgeDecoration::setup_webview() { } } } + +void EdgeDecoration::set_url(const QUrl &url) { + if (!webview.has_value()) + return; + webview.value()->setUrl(url); +} + +std::optional<WebViewId> EdgeDecoration::get_view_id() { + return webview.has_value() ? std::make_optional(webview.value()->get_id()) : std::nullopt; +} |
