From 8221037c77be1f7c256b2575d4a9a4a9d58a9c0d Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sat, 27 May 2017 17:50:22 +0200 Subject: Profile improvements * Some code refactoring * Profile dialog UI is now only created when needed * Profile selector dialog --- src/mainwindow.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/mainwindow.h') diff --git a/src/mainwindow.h b/src/mainwindow.h index ed54461..a1cbcc0 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -48,10 +48,15 @@ public: void addTabbedDock(Qt::DockWidgetArea area, QDockWidget *widget); public slots: - void addNewTab(const QUrl &url = QUrl("")); - void focusAddress(); + void about(); + + void newTab(const QUrl &url = QUrl("")); + void newWindow(const QUrl &url = QUrl("")); + + void profileAction(); + void cookiesAction(); - void loadProfile(const QString name = ""); + void setProfile(WebEngineProfile *profile); void toggleFullscreen(); @@ -59,12 +64,7 @@ protected: void closeEvent(QCloseEvent *event) override; private slots: - void about(); - - void profileAction(); - void cookiesAction(); - - void handleNewWindow(const QUrl &url = QUrl("")); + void focusAddress(); void handleTabChanged(WebView *view); void handleUrlChanged(); void handleTitleUpdated(const QString &title); -- cgit v1.2.1