diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-05-27 17:50:22 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-05-27 17:50:22 +0200 |
commit | 8221037c77be1f7c256b2575d4a9a4a9d58a9c0d (patch) | |
tree | d2e70f9603207dbebeb0238bf15af56e24af18dd /src/mainwindow.h | |
parent | Filter code refactoring (diff) | |
download | smolbote-8221037c77be1f7c256b2575d4a9a4a9d58a9c0d.tar.xz |
Profile improvements
* Some code refactoring
* Profile dialog UI is now only created when needed
* Profile selector dialog
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r-- | src/mainwindow.h | 18 |
1 files changed, 9 insertions, 9 deletions
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); |