aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow/mainwindow.cpp')
-rw-r--r--src/mainwindow/mainwindow.cpp26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/mainwindow/mainwindow.cpp b/src/mainwindow/mainwindow.cpp
index 36fd8a6..77b8ad3 100644
--- a/src/mainwindow/mainwindow.cpp
+++ b/src/mainwindow/mainwindow.cpp
@@ -7,16 +7,18 @@
*/
#include "mainwindow.h"
-#include "ui_mainwindow.h"
#include "addressbar/addressbar.h"
#include "browser.h"
+#include "session.h"
#include "subwindow/subwindow.h"
+#include "ui_mainwindow.h"
#include "webengine/webview.h"
#include "widgets/dockwidget.h"
#include "widgets/navigationbar.h"
#include "widgets/searchform.h"
#include <QApplication>
#include <QCloseEvent>
+#include <QFileDialog>
#include <QJsonArray>
#include <QJsonObject>
#include <QLineEdit>
@@ -24,19 +26,17 @@
#include <QMdiSubWindow>
#include <QMenuBar>
#include <QMessageBox>
+#include <QPrintDialog>
+#include <QPrinter>
+#include <QPrinterInfo>
#include <QShortcut>
#include <QStatusBar>
#include <QToolBar>
#include <QUrl>
+#include <QVBoxLayout>
#include <configuration/configuration.h>
-#include <web/webprofile.h>
-#include "session.h"
-#include <QFileDialog>
-#include <QPrinter>
-#include <QPrinterInfo>
-#include <QPrintDialog>
#include <web/profilemanager.h>
-#include <QVBoxLayout>
+#include <web/webprofile.h>
#ifdef PLASMA_BLUR
#include <KWindowEffects>
#endif
@@ -314,8 +314,8 @@ void MainWindow::createTab(const QUrl &url)
auto *w = qobject_cast<SubWindow *>(mdiArea->currentSubWindow());
if(w == nullptr) {
//w = createSubWindow(url.toString());
-// w = createSubWindow(WebProfile::defaultProfile());
-// w->addTab(url);
+ // w = createSubWindow(WebProfile::defaultProfile());
+ // w->addTab(url);
} else {
w->addTab(url);
}
@@ -381,8 +381,10 @@ void MainWindow::updatePageLoadProfileMenu()
return;
pageLoadProfileMenu->addActions(profileManager->createProfileMenu([this](WebProfile *profile) {
- this->currentView->setProfile(profile);
- }, this)->actions());
+ this->currentView->setProfile(profile);
+ },
+ this)
+ ->actions());
}
void MainWindow::closeEvent(QCloseEvent *event)