mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +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:
parent
32c613a35a
commit
9b3f56093e
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user