diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-01-28 14:59:23 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-01-28 14:59:23 +0200 |
commit | eea675e1f33d29550c9f3e90eb6b6b2402e5ef37 (patch) | |
tree | 66172403b143b371324505a39e0d92a4563a3d11 /src/mainwindow | |
parent | Refactor Browser::addPlugin to ::loadPlugins (diff) | |
download | smolbote-eea675e1f33d29550c9f3e90eb6b6b2402e5ef37.tar.xz |
Add bookmarks toolbar
Bookmarks Toolbar displays the contents of the top-level "Bookmarks
Toolbar" folder.
Diffstat (limited to 'src/mainwindow')
-rw-r--r-- | src/mainwindow/mainwindow.cpp | 6 |
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(); |