diff options
Diffstat (limited to 'src/widgets/webviewtabbar.cpp')
-rw-r--r-- | src/widgets/webviewtabbar.cpp | 8 |
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); |