From f875ad5313b86275c3fd48884063aefb8849235d Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Thu, 2 Feb 2017 14:13:14 +0100 Subject: Added loading bar to status bar Hovered links now display in status bar --- src/widgets/webviewtabbar.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/widgets/webviewtabbar.cpp') diff --git a/src/widgets/webviewtabbar.cpp b/src/widgets/webviewtabbar.cpp index aef2bd8..c091e56 100644 --- a/src/widgets/webviewtabbar.cpp +++ b/src/widgets/webviewtabbar.cpp @@ -37,7 +37,7 @@ WebViewTabBar::~WebViewTabBar() int WebViewTabBar::addTab(QWebEngineProfile *profile, const QUrl &url) { - QWebEngineView *view = new QWebEngineView(0); + WebView *view = new WebView(0); QWebEnginePage *page = new QWebEnginePage(profile); view->setPage(page); page->load(url); @@ -65,7 +65,7 @@ void WebViewTabBar::setProfile(QWebEngineProfile *profile) } } -QWebEngineView *WebViewTabBar::currentView() +WebView *WebViewTabBar::currentView() { return m_views.at(currentIndex()); } @@ -78,7 +78,7 @@ QSize WebViewTabBar::tabSizeHint(int index) const void WebViewTabBar::handleCurrentChanged(int index) { - emit(currentTabChanged(m_views.at(index))); + emit currentTabChanged(m_views.at(index)); } void WebViewTabBar::handleTabClose(int index) @@ -88,7 +88,7 @@ void WebViewTabBar::handleTabClose(int index) m_views.remove(index); } -void WebViewTabBar::updateTabText(QWebEngineView *view, const QString &text) +void WebViewTabBar::updateTabText(WebView *view, const QString &text) { int index = m_views.indexOf(view); setTabText(index, text); -- cgit v1.2.1