diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-07-26 11:59:38 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-07-26 11:59:38 +0530 |
| commit | 2078c60477842d7cf6991148e23979565737a8b5 (patch) | |
| tree | 980e2aea150e85c6b87f2b521fce1006486244d8 /src/widgets/EdgeDecoration.cpp | |
| parent | 68448538172663279919b29dd09b5faa51e0628a (diff) | |
| download | null-browser-2078c60477842d7cf6991148e23979565737a8b5.tar.gz null-browser-2078c60477842d7cf6991148e23979565737a8b5.zip | |
Refactor heavy + extras.tabline module (incomplete)
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; +} |
