aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/EdgeDecoration.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/EdgeDecoration.hpp')
-rw-r--r--src/widgets/EdgeDecoration.hpp7
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();