aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow/mainwindow.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-01-29 15:47:29 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2020-01-29 15:47:29 +0200
commitcccdc668d25444277d39b040c0220505cf52f5b3 (patch)
tree26fb4e5a604d13b4774fecf486c914f312d2ca50 /src/mainwindow/mainwindow.cpp
parentBookmarksToolbar: show text next to icon (diff)
downloadsmolbote-cccdc668d25444277d39b040c0220505cf52f5b3.tar.xz
BookmarksToolbar: add toggle shortcut
- MenuBar: add toggles for MainWindow toolbars to Window menu - set NavigationBar and BookmarksToolbar titles so the default MainWindow context menu makes sense
Diffstat (limited to 'src/mainwindow/mainwindow.cpp')
-rw-r--r--src/mainwindow/mainwindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mainwindow/mainwindow.cpp b/src/mainwindow/mainwindow.cpp
index 5386aab..e03ec46 100644
--- a/src/mainwindow/mainwindow.cpp
+++ b/src/mainwindow/mainwindow.cpp
@@ -41,8 +41,6 @@ MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, mdiArea(new QMdiArea(this))
{
- m_menuBar = new MenuBar(this);
- this->setMenuBar(m_menuBar);
Configuration config;
@@ -82,6 +80,9 @@ MainWindow::MainWindow(QWidget *parent)
this->addToolBarBreak();
this->addToolBar(new BookmarksToolbar(app->bookmarks()->model(), this));
+ m_menuBar = new MenuBar(this);
+ this->setMenuBar(m_menuBar);
+
mdiArea->setBackground(Qt::NoBrush);
setCentralWidget(mdiArea);
mdiArea->setFocus();