diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-19 10:14:22 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-19 10:14:22 +0100 |
commit | c1ad1be5924eb28bf6c32b049098fe24bbbb9e4e (patch) | |
tree | 7cc5ab0e600496279ab575a99a6a0b97c0d6f854 /src/mainwindow.h | |
parent | Some bugfixes (diff) | |
download | smolbote-c1ad1be5924eb28bf6c32b049098fe24bbbb9e4e.tar.xz |
Bug fixes
Switching between tabs should work properly now.
Refactored MainWindowTabBar (was WebViewTabBar)
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r-- | src/mainwindow.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h index 1062d64..1852053 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -24,7 +24,7 @@ #include <QMainWindow> #include "webengine/webengineprofile.h" #include <QUrl> -#include "widgets/webviewtabbar.h" +#include "widgets/mainwindowtabbar.h" #include "widgets/loadingbar.h" #include "navigation/navigationbutton.h" @@ -59,7 +59,7 @@ public slots: void newTab(const QUrl &url = QUrl("")); void newWindow(const QUrl &url = QUrl("")); - void setProfile(WebEngineProfile *profile); + void setProfile(std::shared_ptr<WebEngineProfile> profile); WebEngineProfile *profile(); void setBookmarksWidget(std::shared_ptr<BookmarksWidget> &widget); @@ -79,7 +79,7 @@ private: Q_DISABLE_COPY(MainWindow) Ui::MainWindow *ui; - WebViewTabBar *tabBar; + MainWindowTabBar *tabBar; WebView *m_currentView; MainWindowMenuBar *menuBar; @@ -90,6 +90,7 @@ private: LoadingBar *m_progressBar; bool m_tabBarAdded = false; + std::shared_ptr<WebEngineProfile> m_profile; std::shared_ptr<Configuration> m_config; std::shared_ptr<BookmarksWidget> m_bookmarksWidget; std::shared_ptr<DownloadsWidget> m_downloadsWidget; |