diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-05-01 18:38:54 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-05-01 18:38:54 +0200 |
commit | 19ff096cd450780f16bfe8f699e76f6dc68fe193 (patch) | |
tree | 859a86ab8f3612a4bdef2e9fcf797622ae3d225d /src/mainwindow/mainwindow.h | |
parent | Split off addressbar into lib/ (diff) | |
download | smolbote-19ff096cd450780f16bfe8f699e76f6dc68fe193.tar.xz |
Don't open additional tabs when creating subwindows
Diffstat (limited to 'src/mainwindow/mainwindow.h')
-rw-r--r-- | src/mainwindow/mainwindow.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mainwindow/mainwindow.h b/src/mainwindow/mainwindow.h index 489075f..2532189 100644 --- a/src/mainwindow/mainwindow.h +++ b/src/mainwindow/mainwindow.h @@ -11,6 +11,7 @@ #include <QMainWindow> #include <memory> +#include <QUrl> class Browser; class QMdiArea; @@ -40,9 +41,11 @@ public: void addAction(ActionLocation where, QAction *action); void addDockWidget(Qt::DockWidgetArea area, QWidget *widget); + Window *currentSubWindow() const; + public slots: void createTab(const QUrl &url); - Window *createSubWindow(const QUrl &url); + Window *createSubWindow(const QString &url = QString()); void setView(WebView *view); |