aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/webviewtabbar.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-02-02 14:13:14 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-02-02 14:13:14 +0100
commitf875ad5313b86275c3fd48884063aefb8849235d (patch)
tree9c7933aacc895ab6a52045abc7fe8fb1dccb6c20 /src/widgets/webviewtabbar.cpp
parentAStyle pass (diff)
downloadsmolbote-f875ad5313b86275c3fd48884063aefb8849235d.tar.xz
Added loading bar to status bar
Hovered links now display in status bar
Diffstat (limited to 'src/widgets/webviewtabbar.cpp')
-rw-r--r--src/widgets/webviewtabbar.cpp8
1 files changed, 4 insertions, 4 deletions
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);