summaryrefslogtreecommitdiff
path: root/src/rekonqwindow_class.cpp
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2022-09-11 14:21:43 +0300
committeraqua <aqua@iserlohn-fortress.net>2022-09-14 08:51:10 +0300
commit59e5e79cd32187b842bbb423a287a54a23a60f5f (patch)
tree2a730a663c9a1917e08da62eb87d6b2c5e2ebd5c /src/rekonqwindow_class.cpp
parentBookmarksPanel: add custom context menu (diff)
downloadrekonq-59e5e79cd32187b842bbb423a287a54a23a60f5f.tar.xz
BookmarksMenu: show top-level bookmarks
Diffstat (limited to 'src/rekonqwindow_class.cpp')
-rw-r--r--src/rekonqwindow_class.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rekonqwindow_class.cpp b/src/rekonqwindow_class.cpp
index c83fd3ae..517742f4 100644
--- a/src/rekonqwindow_class.cpp
+++ b/src/rekonqwindow_class.cpp
@@ -15,6 +15,7 @@
#ifndef REKONQ_TEST
#include "application.hpp"
+#include "bookmarks/bookmarkstreemodel.hpp"
#include "settings/settingsdialog.h"
#include "taskmanager.h"
#include <spdlog/spdlog.h>
@@ -30,9 +31,12 @@ RekonqWindow::RekonqWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::Re
#ifndef REKONQ_TEST
ui->bookmarksPanel->setModel(Application::instance()->bookmarks());
+ ui->menuBookmarks->setModel(Application::instance()->bookmarks());
#endif
connect(ui->bookmarksPanel, &BookmarksPanel::loadUrl, this,
qOverload<const QUrl &, rekonq::OpenType>(&RekonqWindow::loadUrl));
+ connect(ui->menuBookmarks, &BookmarksMenu::loadUrl, this,
+ qOverload<const QUrl &, rekonq::OpenType>(&RekonqWindow::loadUrl));
connect(ui->tabs, &TabBar::currentChanged, this, [this](RekonqView *view) {
if (view == nullptr) { // last tab has been closed