From 0d93cf6fea0a5bae6bdf4adc15d5d6fd3306d0e6 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Thu, 28 Jun 2018 10:21:47 +0200 Subject: Add --session parameter to load a session json Add Session menu to main window --- src/mainwindow/subwindow.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/mainwindow/subwindow.h') diff --git a/src/mainwindow/subwindow.h b/src/mainwindow/subwindow.h index e6d7177..1283481 100644 --- a/src/mainwindow/subwindow.h +++ b/src/mainwindow/subwindow.h @@ -26,18 +26,17 @@ public: WebView *currentView(); WebView *view(int index) const; + int tabCount() const; void setProfile(WebProfile *profile); WebProfile *profile() const; - QJsonObject session() const; - signals: void currentViewChanged(WebView *view); void showStatusMessage(const QString &message, int timeout = 0); public slots: - int addTab(const QUrl &url = QUrl()); + int addTab(const QUrl &url = QUrl(), WebProfile *profile = nullptr); void setCurrentTab(int index); private: -- cgit v1.2.1