From 44cbf54997f9a61836729d111cd9190df6250a4b Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Fri, 8 Dec 2017 21:01:02 +0100 Subject: Fixed showing bookmarks and downloads widgets --- src/mainwindow.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/mainwindow.h') diff --git a/src/mainwindow.h b/src/mainwindow.h index 4a0c87d..07c6b2f 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -41,6 +41,9 @@ class MainWindow; } class Configuration; +class BookmarksWidget; +class DownloadsWidget; +class MainWindowMenuBar; class MainWindow : public QMainWindow { Q_OBJECT @@ -58,6 +61,8 @@ public slots: void newWindow(const QUrl &url = QUrl("")); void setProfile(WebEngineProfile *profile); + void setBookmarksWidget(std::shared_ptr &widget); + void setDownloadsWidget(std::shared_ptr &widget); void toggleFullscreen(); @@ -77,6 +82,8 @@ private: WebViewTabBar *tabBar; WebView *m_currentView; + MainWindowMenuBar *menuBar; + // navigation NavigationButton *m_backButton, *m_forwardButton, *m_reloadButton; AddressBar *m_addressBar; @@ -84,6 +91,8 @@ private: bool m_tabBarAdded = false; std::shared_ptr m_config; + std::shared_ptr m_bookmarksWidget; + std::shared_ptr m_downloadsWidget; }; #endif // MAINWINDOW_H -- cgit v1.2.1