diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-07-25 18:56:49 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-07-25 18:56:49 +0530 |
| commit | 2c7d36b4aa53ffa638a7aa7046767f10e7a152bf (patch) | |
| tree | 679c34d6566f5a774bcd5f979af755cf3cfeac4f /src/widgets/EdgeDecoration.hpp | |
| parent | 51be15cd7c9f39276f27d416356744041e62c22c (diff) | |
| download | null-browser-2c7d36b4aa53ffa638a7aa7046767f10e7a152bf.tar.gz null-browser-2c7d36b4aa53ffa638a7aa7046767f10e7a152bf.zip | |
Expose decorations enable/disable lua api
Diffstat (limited to '')
| -rw-r--r-- | src/widgets/EdgeDecoration.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/widgets/EdgeDecoration.hpp b/src/widgets/EdgeDecoration.hpp index c83227a..59390dc 100644 --- a/src/widgets/EdgeDecoration.hpp +++ b/src/widgets/EdgeDecoration.hpp @@ -3,6 +3,7 @@ #include <QWidget> #include <QtCore> #include <cstdint> +#include <optional> #include <qwebengineprofile.h> #include <qwebengineview.h> @@ -20,10 +21,10 @@ public: private: bool vertical; - WebView *webview = nullptr; + std::optional<WebView *> webview = std::nullopt; QWebEngineProfile *profile; - bool enabled; - QString html_content; + bool enabled = false; + QString html_content = ""; uint16_t size = 24; void setup_webview(); |
