diff options
Diffstat (limited to 'src/mainwindow')
-rw-r--r-- | src/mainwindow/mainwindow.cpp | 26 | ||||
-rw-r--r-- | src/mainwindow/mainwindow.h | 3 |
2 files changed, 16 insertions, 13 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) diff --git a/src/mainwindow/mainwindow.h b/src/mainwindow/mainwindow.h index 3abeb39..d7a5fb3 100644 --- a/src/mainwindow/mainwindow.h +++ b/src/mainwindow/mainwindow.h @@ -23,7 +23,8 @@ class WebView; class NavigationBar; class WebProfile; -namespace Ui { +namespace Ui +{ class MainWindow; } |