From 3323b83af3bc0cd4feff0e0463718e77d4eabef7 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Wed, 20 Dec 2017 12:53:40 +0100 Subject: Can now open links in new tab --- src/mainwindow.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mainwindow.h') 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 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 profile); WebEngineProfile *profile(); -- cgit v1.2.1