diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-05-28 10:21:30 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-05-28 10:21:30 +0200 |
commit | 49f1351231a71969160b2574603d198af3cf67b3 (patch) | |
tree | 3f74847f218efc8cf166f3f49e663177daefff41 /src/mainwindow/window.h | |
parent | Swap to new tab after creating it (diff) | |
download | smolbote-49f1351231a71969160b2574603d198af3cf67b3.tar.xz |
Remove Window::addTab(WebView *view)
Diffstat (limited to 'src/mainwindow/window.h')
-rw-r--r-- | src/mainwindow/window.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mainwindow/window.h b/src/mainwindow/window.h index 22955b8..a569214 100644 --- a/src/mainwindow/window.h +++ b/src/mainwindow/window.h @@ -11,9 +11,11 @@ #include <QMdiSubWindow> #include <memory> +#include <QUrl> class TabWidget; class WebView; +class WebProfile; class Window : public QMdiSubWindow { Q_OBJECT @@ -23,6 +25,8 @@ public: ~Window() override; WebView *currentView(); + WebView *view(int index) const; + QJsonObject session() const; void restoreSession(const QJsonObject &sessionData); @@ -31,12 +35,12 @@ signals: void showStatusMessage(const QString &message, int timeout = 0); public slots: - int addTab(WebView *view); - int addTab(const QUrl &url); + int addTab(const QUrl &url = QUrl()); void swapToTab(int index); private: + WebProfile *profile; TabWidget *tabWidget; QMetaObject::Connection titleConnection; |