diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-01-12 11:11:34 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-01-12 11:11:34 +0100 |
commit | 835d23f1f3b8cc3ada5005ac87bdcfe7029c8732 (patch) | |
tree | dae8b4045bb9ac991a2cd8bb124b5f60e4171d24 /src/mainwindow.h | |
parent | Minor changes (diff) | |
download | smolbote-835d23f1f3b8cc3ada5005ac87bdcfe7029c8732.tar.xz |
New Window action now works
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r-- | src/mainwindow.h | 5 |
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;
|