Commit 5b06d523 authored by Jocelyn Turcotte's avatar Jocelyn Turcotte
Browse files

Implement QWebEngineView::title and QWebEnginePage::title.


Change-Id: I9fb191a5a2351c5c953f640a6cf1a33609385cc9
Reviewed-by: default avatarAndras Becsi <andras.becsi@digia.com>
Showing with 16 additions and 5 deletions
......@@ -166,4 +166,10 @@ void QWebEnginePage::load(const QUrl& url)
d->adapter->load(url);
}
QString QWebEnginePage::title() const
{
Q_D(const QWebEnginePage);
return d->adapter->pageTitle();
}
#include "moc_qwebenginepage.cpp"
......@@ -114,6 +114,16 @@ void QWebEngineView::load(const QUrl& url)
page()->load(url);
}
QString QWebEngineView::title() const
{
return page()->title();
}
void QWebEngineView::stop()
{
page()->triggerAction(QWebEnginePage::Stop);
}
void QWebEngineView::back()
{
page()->triggerAction(QWebEnginePage::Back);
......@@ -129,9 +139,4 @@ void QWebEngineView::reload()
page()->triggerAction(QWebEnginePage::Reload);
}
void QWebEngineView::stop()
{
page()->triggerAction(QWebEnginePage::Stop);
}
#include "moc_qwebengineview.cpp"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment