Commit 42174782 authored by Szabolcs David's avatar Szabolcs David
Browse files

Quick: Document javaScriptConsoleMessage


Change-Id: Iaf5a9c7915cdce36fe3219dd686059973d1a6251
Reviewed-by: default avatarMichael Brüning <michael.bruning@theqtcompany.com>
Showing with 12 additions and 1 deletion
...@@ -441,7 +441,6 @@ bool QQuickWebEngineViewPrivate::isFullScreen() const ...@@ -441,7 +441,6 @@ bool QQuickWebEngineViewPrivate::isFullScreen() const
void QQuickWebEngineViewPrivate::javaScriptConsoleMessage(JavaScriptConsoleMessageLevel level, const QString& message, int lineNumber, const QString& sourceID) void QQuickWebEngineViewPrivate::javaScriptConsoleMessage(JavaScriptConsoleMessageLevel level, const QString& message, int lineNumber, const QString& sourceID)
{ {
Q_Q(QQuickWebEngineView); Q_Q(QQuickWebEngineView);
Q_UNUSED(level);
Q_EMIT q->javaScriptConsoleMessage(static_cast<QQuickWebEngineView::JavaScriptConsoleMessageLevel>(level), message, lineNumber, sourceID); Q_EMIT q->javaScriptConsoleMessage(static_cast<QQuickWebEngineView::JavaScriptConsoleMessageLevel>(level), message, lineNumber, sourceID);
} }
......
...@@ -312,6 +312,18 @@ ...@@ -312,6 +312,18 @@
The corresponding handler is onLinkHovered. The corresponding handler is onLinkHovered.
*/ */
/*!
\qmlsignal WebEngineView::javaScriptConsoleMessage(JavaScriptConsoleMessageLevel level, message, lineNumber, sourceID)
This signal is emitted when a JavaScript program tries to print a \a message to the web browser's console.
For example in case of evaluation errors the source URL may be provided in \a sourceID as well as the \a lineNumber.
\a level indicates the severity of the event that triggered the message, i.e. if it
was triggered by an error or a less severe event.
The corresponding handler is onJavaScriptConsoleMessage.
*/
/*! /*!
\qmlsignal WebEngineView::newViewRequested(request) \qmlsignal WebEngineView::newViewRequested(request)
......
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