1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

TabbedWebView: Rename setWebPage -> setPage

Fixes hovered links not being shown in statusbar for target=_blank
tabs as WebPage is setting new page of webview with setPage.
This commit is contained in:
David Rosca 2018-01-28 18:35:44 +01:00
parent 32c613a35a
commit 9b3f56093e
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
3 changed files with 5 additions and 5 deletions

View File

@ -49,10 +49,9 @@ TabbedWebView::TabbedWebView(WebTab* webTab)
connect(this, SIGNAL(urlChanged(QUrl)), this, SLOT(urlChanged(QUrl)));
}
void TabbedWebView::setWebPage(WebPage* page)
void TabbedWebView::setPage(WebPage* page)
{
page->setParent(this);
setPage(page);
WebView::setPage(page);
connect(page, &WebPage::linkHovered, this, &TabbedWebView::linkHovered);
}

View File

@ -1,6 +1,7 @@
/* ============================================================
* Falkon - Qt web browser
* Copyright (C) 2010-2015 David Rosca <nowrep@gmail.com>
* Copyright (C) 2010-2018 David Rosca <nowrep@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -36,7 +37,7 @@ class FALKON_EXPORT TabbedWebView : public WebView
public:
explicit TabbedWebView(WebTab* webTab);
void setWebPage(WebPage* page);
void setPage(WebPage* page);
// BrowserWindow can be null!
BrowserWindow* browserWindow() const;

View File

@ -117,7 +117,7 @@ WebTab::WebTab(BrowserWindow* window)
m_webView = new TabbedWebView(this);
m_webView->setBrowserWindow(m_window);
m_webView->setWebPage(new WebPage);
m_webView->setPage(new WebPage);
m_webView->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
m_locationBar = new LocationBar(m_window);