diff options
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); |