From 51be15cd7c9f39276f27d416356744041e62c22c Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Fri, 25 Jul 2025 17:03:32 +0530 Subject: Add edge decoration widgets --- src/widgets/EdgeDecoration.hpp | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/widgets/EdgeDecoration.hpp (limited to 'src/widgets/EdgeDecoration.hpp') diff --git a/src/widgets/EdgeDecoration.hpp b/src/widgets/EdgeDecoration.hpp new file mode 100644 index 0000000..c83227a --- /dev/null +++ b/src/widgets/EdgeDecoration.hpp @@ -0,0 +1,30 @@ +#pragma once + +#include +#include +#include +#include +#include + +#include "widgets/WebView.hpp" + +class EdgeDecoration : public QWidget { + Q_OBJECT + +public: + EdgeDecoration(bool vertical, QWebEngineProfile *profile, QWidget *parent = nullptr); + + void set_size(uint16_t size_value); + void set_html(const QString &content); + void set_enabled(bool enabled_value); + +private: + bool vertical; + WebView *webview = nullptr; + QWebEngineProfile *profile; + bool enabled; + QString html_content; + uint16_t size = 24; + + void setup_webview(); +}; -- cgit v1.3.1