diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-20 12:53:40 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-20 12:53:40 +0100 |
commit | 3323b83af3bc0cd4feff0e0463718e77d4eabef7 (patch) | |
tree | bea0abe418c808f8f089a642e098c993b29af143 /src/mainwindow.h | |
parent | Changed license from GPL3+ to GPL3 (diff) | |
download | smolbote-3323b83af3bc0cd4feff0e0463718e77d4eabef7.tar.xz |
Can now open links in new tab
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r-- | src/mainwindow.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h index 3d6e417..31a3d2f 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -34,6 +34,8 @@ class MainWindow : public QMainWindow { Q_OBJECT + friend class WebView; + public: MainWindow(std::shared_ptr<Configuration> config, QWidget *parent = nullptr); ~MainWindow() override; @@ -45,7 +47,7 @@ public slots: void showSettingsDialog(); void newTab(const QUrl &url = QUrl("")); - void newWindow(const QUrl &url = QUrl("")); + MainWindow *newWindow(const QUrl &url = QUrl("")); void setProfile(std::shared_ptr<WebEngineProfile> profile); WebEngineProfile *profile(); |