diff options
Diffstat (limited to 'src/mainwindow/mainwindow.cpp')
-rw-r--r-- | src/mainwindow/mainwindow.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mainwindow/mainwindow.cpp b/src/mainwindow/mainwindow.cpp index 2b6eb07..e885513 100644 --- a/src/mainwindow/mainwindow.cpp +++ b/src/mainwindow/mainwindow.cpp @@ -8,14 +8,16 @@ #include "mainwindow.h" #include "addressbar/addressbar.h" +#include "browser.h" +#include "subwindow.h" #include "webengine/webview.h" +#include "widgets/dockwidget.h" #include "widgets/navigationbar.h" #include "widgets/searchform.h" -#include "subwindow.h" -#include "browser.h" #include <QApplication> #include <QCloseEvent> -#include "widgets/dockwidget.h" +#include <QJsonArray> +#include <QJsonObject> #include <QLineEdit> #include <QMdiArea> #include <QMdiSubWindow> @@ -26,9 +28,6 @@ #include <QToolBar> #include <QUrl> #include <configuration/configuration.h> -#include <QJsonObject> -#include <QJsonArray> -#include "browser.h" #ifdef PLASMA_BLUR #include <KWindowEffects> @@ -113,7 +112,6 @@ MainWindow::MainWindow(std::shared_ptr<Configuration> &config, QWidget *parent) } }); - // search box auto *searchShortcut = new QShortcut(QKeySequence(config->value<std::string>("mainwindow.shortcuts.search").value().c_str()), this); connect(searchShortcut, &QShortcut::activated, this, [=]() { @@ -147,17 +145,19 @@ void MainWindow::createMenuBar() auto *smolboteMenu = menuBar()->addMenu(qApp->applicationDisplayName()); smolboteMenu->addAction(tr("New subwindow"), this, [this]() { createSubWindow(); - }, QKeySequence(m_config->value<std::string>("mainwindow.shortcuts.newGroup").value().c_str())); + }, + QKeySequence(m_config->value<std::string>("mainwindow.shortcuts.newGroup").value().c_str())); smolboteMenu->addAction(tr("New window"), this, []() { auto *browser = qobject_cast<Browser *>(qApp); if(browser) browser->createWindow(); - }, QKeySequence(m_config->value<std::string>("mainwindow.shortcuts.newWindow").value().c_str())); + }, + QKeySequence(m_config->value<std::string>("mainwindow.shortcuts.newWindow").value().c_str())); smolboteMenu->addSeparator(); - smolboteMenu->addAction(tr("About"), qobject_cast<Browser*>(qApp), &Browser::about, QKeySequence(m_config->value<std::string>("mainwindow.shortcuts.about").value().c_str())); + smolboteMenu->addAction(tr("About"), qobject_cast<Browser *>(qApp), &Browser::about, QKeySequence(m_config->value<std::string>("mainwindow.shortcuts.about").value().c_str())); smolboteMenu->addAction(tr("About Qt"), qApp, &QApplication::aboutQt); smolboteMenu->addSeparator(); |