From 2078c60477842d7cf6991148e23979565737a8b5 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 26 Jul 2025 11:59:38 +0530 Subject: Refactor heavy + extras.tabline module (incomplete) --- src/widgets/EdgeDecoration.hpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/widgets/EdgeDecoration.hpp') diff --git a/src/widgets/EdgeDecoration.hpp b/src/widgets/EdgeDecoration.hpp index f627636..0a977df 100644 --- a/src/widgets/EdgeDecoration.hpp +++ b/src/widgets/EdgeDecoration.hpp @@ -7,9 +7,9 @@ #include #include +#include "WebViewData.hpp" #include "utils.hpp" #include "widgets/WebView.hpp" -#include "widgets/WebViewStack.hpp" class EdgeDecoration : public QWidget { Q_OBJECT @@ -20,18 +20,11 @@ public: void set_size(uint16_t size_value); void set_html(const QString &content); void set_enabled(bool enabled_value); - void set_url(const QUrl &url) { - if (!webview.has_value()) - return; - webview.value()->setUrl(url); - } + void set_url(const QUrl &url); + std::optional get_view_id(); DEFINE_GETTER(is_enabled, enabled) - std::optional get_view_id() { - return webview.has_value() ? std::make_optional(webview.value()->get_id()) : std::nullopt; - } - private: bool vertical; std::optional webview = std::nullopt; -- cgit v1.3.1