From 1ee841364215042f1f284e692ae191ebf7a64156 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Tue, 1 May 2018 15:54:49 +0200 Subject: Split off addressbar into lib/ --- src/mainwindow/mainwindow.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/mainwindow/mainwindow.h') diff --git a/src/mainwindow/mainwindow.h b/src/mainwindow/mainwindow.h index 1257a56..489075f 100644 --- a/src/mainwindow/mainwindow.h +++ b/src/mainwindow/mainwindow.h @@ -18,6 +18,8 @@ class Configuration; class Window; class AddressBar; class SearchForm; +class WebView; +class NavigationBar; class MainWindow : public QMainWindow { friend class Browser; @@ -42,20 +44,23 @@ public slots: void createTab(const QUrl &url); Window *createSubWindow(const QUrl &url); + void setView(WebView *view); + protected: void closeEvent(QCloseEvent *event) override; private: QAction *subWindowAction = nullptr; QMenu *toolsMenu = nullptr; + NavigationBar *navigationToolBar = nullptr; AddressBar *addressBar = nullptr; SearchForm *searchBox = nullptr; QMdiArea *mdiArea; std::shared_ptr m_config; - QMetaObject::Connection addressBarConnection, navigationBarConnection; - QMetaObject::Connection searchBoxConnection; + QMetaObject::Connection viewChangedConnection; + QMetaObject::Connection searchConnection, searchBoxConnection; QMetaObject::Connection statusBarConnection; }; -- cgit v1.2.1