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/BrowserWindow.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/widgets/BrowserWindow.cpp') diff --git a/src/widgets/BrowserWindow.cpp b/src/widgets/BrowserWindow.cpp index c565cb9..fe2285b 100644 --- a/src/widgets/BrowserWindow.cpp +++ b/src/widgets/BrowserWindow.cpp @@ -7,9 +7,11 @@ #include "Configuration.hpp" #include "keymap/KeymapEvaluator.hpp" -#include "widgets/BrowserWindow.hpp" +#include "widgets/Decorations.hpp" #include "widgets/WebViewStack.hpp" +#include "widgets/BrowserWindow.hpp" + BrowserWindow::BrowserWindow(const Configuration &configuration, QWebEngineProfile *profile, const QStringList &urls) : QMainWindow(nullptr), configuration(configuration) { @@ -23,7 +25,8 @@ BrowserWindow::BrowserWindow(const Configuration &configuration, QWebEngineProfi // Stack of web views webview_stack = new WebViewStack(&configuration, profile, this); - layout->addWidget(webview_stack); + decorations = new Decorations(webview_stack, profile, this); + layout->addWidget(decorations); // Open webviews for given urls if (urls.isEmpty()) { -- cgit v1.3.1