aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h
index 48ce43f..7371759 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -12,12 +12,13 @@ namespace Ui {
class MainWindow;
}
+class Browser;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
- explicit MainWindow(QUrl defaultUrl = QUrl(""), QWidget *parent = 0);
+ explicit MainWindow(Browser *instance, QUrl defaultUrl = QUrl(""), QWidget *parent = 0);
~MainWindow();
public slots:
@@ -27,12 +28,14 @@ protected:
void closeEvent(QCloseEvent *event) override;
private slots:
+ void handleNewWindow(const QUrl &url = QUrl(""));
void handleTabChanged(QWebEngineView *view);
void handleUrlChanged();
void handleUrlUpdated(const QUrl &url);
void handleTitleUpdated(const QString &title);
private:
+ Browser *browserInstance;
Ui::MainWindow *ui;
QToolBar *navigationToolBar, *tabToolBar;
WebViewTabBar *tabBar;