From a99922affdc7953f092dcfcf34ea741567a5bddc Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Mon, 28 Jul 2014 16:35:16 +0200 Subject: Add api to get the favicon URL Adds one of the missing pieces of the QWebFrame and QWebView APIs. Unlike the QtWebKit version this only fetches the favicon URL, and not the icon. This is because we do not want to implement an icon database, and that the icon would be loaded asynchronous anyway, bringing no guarantee to be a valid icon/image yet. Change-Id: I227311ae3676044da850e687b82bee752b5079c8 Reviewed-by: Jocelyn Turcotte --- src/webenginewidgets/doc/src/qwebenginepage_lgpl.qdoc | 17 +++++++++++++++++ src/webenginewidgets/doc/src/qwebengineview_lgpl.qdoc | 15 +++++++++++++++ 2 files changed, 32 insertions(+) (limited to 'src/webenginewidgets/doc/src') diff --git a/src/webenginewidgets/doc/src/qwebenginepage_lgpl.qdoc b/src/webenginewidgets/doc/src/qwebenginepage_lgpl.qdoc index 20564d724..41dd0a31b 100644 --- a/src/webenginewidgets/doc/src/qwebenginepage_lgpl.qdoc +++ b/src/webenginewidgets/doc/src/qwebenginepage_lgpl.qdoc @@ -424,6 +424,13 @@ \sa urlChanged() */ +/*! + \property QWebEnginePage::iconUrl + \brief the url of the icon associated with the frame currently viewed. + + \sa iconUrlChanged() +*/ + /*! \property QWebEnginePage::requestedUrl @@ -544,3 +551,13 @@ \sa url() */ + +/*! + \fn void QWebEnginePage::iconUrlChanged(const QUrl &url) + + This signal is emitted when the icon ("favicon") associated with the main frame is + found or changed. The new URL is specified by \a url. + + + \sa iconUrl() +*/ diff --git a/src/webenginewidgets/doc/src/qwebengineview_lgpl.qdoc b/src/webenginewidgets/doc/src/qwebengineview_lgpl.qdoc index bdfd4b20a..5c42d252b 100644 --- a/src/webenginewidgets/doc/src/qwebengineview_lgpl.qdoc +++ b/src/webenginewidgets/doc/src/qwebengineview_lgpl.qdoc @@ -192,6 +192,13 @@ \sa load(), urlChanged() */ +/*! + \property QWebEngineView::iconUrl + \brief the url of the icon associated with the web page currently viewed + + \sa iconUrlChanged() +*/ + /*! \property QWebEngineView::hasSelection \brief whether this page contains selected content or not. @@ -314,6 +321,14 @@ \sa url(), load() */ +/*! + \fn void QWebEngineView::iconUrlChanged(const QUrl &url) + + This signal is emitted whenever the icon \a url of the view changes. + + \sa iconUrl() +*/ + /*! \fn void QWebEngineView::loadStarted() -- cgit v1.2.3