From a0d66fc16f63e4230604fbad20254afb093af6fb Mon Sep 17 00:00:00 2001 From: Paulo Pinheiro Date: Fri, 20 Mar 2015 18:13:22 -0300 Subject: Improve documentation about certificate errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Documentation about how to handle certificate errors was poor, so this patch try to improve that. [ChangeLog][QtWebEngineQML][QQuickWebEngineCertificateError] New API for handling certificate errors in the QML API. Change-Id: I9234f5c8296651e7634ee41827fc6dcce503398b Reviewed-by: Michael BrĂ¼ning --- src/webenginewidgets/doc/src/qwebenginepage_lgpl.qdoc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/webenginewidgets') diff --git a/src/webenginewidgets/doc/src/qwebenginepage_lgpl.qdoc b/src/webenginewidgets/doc/src/qwebenginepage_lgpl.qdoc index f5aa64eed..3088a66b6 100644 --- a/src/webenginewidgets/doc/src/qwebenginepage_lgpl.qdoc +++ b/src/webenginewidgets/doc/src/qwebenginepage_lgpl.qdoc @@ -345,6 +345,17 @@ \sa QWebEngineSettings::globalSettings() */ +/*! + \fn bool QWebEnginePage::certificateError(const QWebEngineCertificateError & certificateError) + This function is called when an invalid certificate error is raised while loading a given request. + + The \a certificateError parameter contains information about the certificate and details of the error. + + Return true to ignore the error and complete the request, otherwise return false to stop loading the request. + + \sa QWebEngineCertificateError +*/ + /*! \fn QString QWebEnginePage::chooseFiles(FileSelectionMode mode, const QStringList& oldFiles, const QStringList& acceptedMimeTypes) This function is called when the web content requests a file name, for example -- cgit v1.2.3