aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow/mainwindow.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-01-28 14:59:23 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2020-01-28 14:59:23 +0200
commiteea675e1f33d29550c9f3e90eb6b6b2402e5ef37 (patch)
tree66172403b143b371324505a39e0d92a4563a3d11 /src/mainwindow/mainwindow.cpp
parentRefactor Browser::addPlugin to ::loadPlugins (diff)
downloadsmolbote-eea675e1f33d29550c9f3e90eb6b6b2402e5ef37.tar.xz
Add bookmarks toolbar
Bookmarks Toolbar displays the contents of the top-level "Bookmarks Toolbar" folder.
Diffstat (limited to 'src/mainwindow/mainwindow.cpp')
-rw-r--r--src/mainwindow/mainwindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainwindow/mainwindow.cpp b/src/mainwindow/mainwindow.cpp
index 558fe49..5386aab 100644
--- a/src/mainwindow/mainwindow.cpp
+++ b/src/mainwindow/mainwindow.cpp
@@ -8,6 +8,8 @@
#include "mainwindow.h"
#include "addressbar.h"
+#include "bookmarks/bookmarkstoolbar.h"
+#include "bookmarks/bookmarkswidget.h"
#include "browser.h"
#include "configuration.h"
#include "menubar.h"
@@ -76,6 +78,10 @@ MainWindow::MainWindow(QWidget *parent)
addressBar = new AddressBar(this);
navigationToolBar->addWidget(addressBar);
+ Browser *app = qobject_cast<Browser *>(qApp);
+ this->addToolBarBreak();
+ this->addToolBar(new BookmarksToolbar(app->bookmarks()->model(), this));
+
mdiArea->setBackground(Qt::NoBrush);
setCentralWidget(mdiArea);
mdiArea->setFocus();