aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/BrowserWindow.cpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-07-25 17:03:32 +0530
committerAkshay Nair <phenax5@gmail.com>2025-07-25 17:03:32 +0530
commit51be15cd7c9f39276f27d416356744041e62c22c (patch)
tree0ba09371265f4b3d9923b60308d9aecce8c37e20 /src/widgets/BrowserWindow.cpp
parent7e3b6182c4581fcb39ab1d0ef2eb07fe9fa1d8b6 (diff)
downloadnull-browser-51be15cd7c9f39276f27d416356744041e62c22c.tar.gz
null-browser-51be15cd7c9f39276f27d416356744041e62c22c.zip
Add edge decoration widgets
Diffstat (limited to '')
-rw-r--r--src/widgets/BrowserWindow.cpp7
1 files changed, 5 insertions, 2 deletions
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()) {