mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
Small cleanup in WebView
This commit is contained in:
parent
d8682ff51d
commit
90e72aa88f
|
@ -123,8 +123,8 @@ void WebView::setPage(WebPage *page)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
QWebEngineView::setPage(page);
|
m_page = page;
|
||||||
m_page = qobject_cast<WebPage*>(page);
|
QWebEngineView::setPage(m_page);
|
||||||
|
|
||||||
connect(m_page, SIGNAL(privacyChanged(bool)), this, SIGNAL(privacyChanged(bool)));
|
connect(m_page, SIGNAL(privacyChanged(bool)), this, SIGNAL(privacyChanged(bool)));
|
||||||
|
|
||||||
|
@ -233,7 +233,7 @@ void WebView::restoreHistory(const QByteArray &data)
|
||||||
stream >> *history();
|
stream >> *history();
|
||||||
|
|
||||||
// Workaround clearing QWebChannel after restoring history
|
// Workaround clearing QWebChannel after restoring history
|
||||||
m_page->setupWebChannel();
|
page()->setupWebChannel();
|
||||||
}
|
}
|
||||||
|
|
||||||
QWidget *WebView::inputWidget() const
|
QWidget *WebView::inputWidget() const
|
||||||
|
@ -1128,7 +1128,7 @@ void WebView::loadRequest(const LoadRequest &req)
|
||||||
if (req.operation() == LoadRequest::GetOperation)
|
if (req.operation() == LoadRequest::GetOperation)
|
||||||
load(req.url());
|
load(req.url());
|
||||||
else
|
else
|
||||||
m_page->runJavaScript(Scripts::sendPostData(req.url(), req.data()));
|
page()->runJavaScript(Scripts::sendPostData(req.url(), req.data()));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool WebView::eventFilter(QObject *obj, QEvent *event)
|
bool WebView::eventFilter(QObject *obj, QEvent *event)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user