Commit af45af25 authored by Robin Burchell's avatar Robin Burchell Committed by Robin Burchell
Browse files

QQuickWebEngineScript: First stab at documenting sourceUrl and sourceCode.


Change-Id: I9674488a95e3d0293c52b854201bb840392a641f
Reviewed-by: default avatarPierre Rossi <pierre.rossi@theqtcompany.com>
parent 42174782
No related merge requests found
Showing with 21 additions and 0 deletions
......@@ -84,12 +84,33 @@ QString QQuickWebEngineScript::name() const
return d->coreScript.name();
}
/*!
\qmlproperty url WebEngineScript::sourceUrl
This property holds the remote source location of the user script (if any).
Unlike \l sourceCode, this property allows referring to user scripts that
are not already loaded in memory, for instance, when stored on disk.
Setting this property will change the \l sourceCode of the script.
\note At present, only file-based sources are supported.
\sa sourceCode
*/
QUrl QQuickWebEngineScript::sourceUrl() const
{
Q_D(const QQuickWebEngineScript);
return d->m_sourceUrl;
}
/*!
\qmlproperty string WebEngineScript::sourceCode
This property holds the JavaScript source code of the user script.
\sa sourceUrl
*/
QString QQuickWebEngineScript::sourceCode() const
{
Q_D(const QQuickWebEngineScript);
......
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