diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-01-29 15:47:29 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-01-29 15:47:29 +0200 |
commit | cccdc668d25444277d39b040c0220505cf52f5b3 (patch) | |
tree | 26fb4e5a604d13b4774fecf486c914f312d2ca50 /src/mainwindow/mainwindow.cpp | |
parent | BookmarksToolbar: show text next to icon (diff) | |
download | smolbote-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.cpp | 5 |
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(); |