mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 17:49:27 +02:00
Add comment to ScriptEngine::include()
This commit is contained in:
parent
ce9e8910e4
commit
e6caefa023
1 changed files with 7 additions and 1 deletions
|
@ -596,6 +596,12 @@ void ScriptEngine::print(const QString& message) {
|
||||||
emit printedMessage(message);
|
emit printedMessage(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If a callback is specified, the included files will be loaded asynchronously and the callback will be called
|
||||||
|
* when all of the files have finished loading.
|
||||||
|
* If no callback is specified, the included files will be loaded synchronously and will block execution until
|
||||||
|
* all of the files have finished loading.
|
||||||
|
*/
|
||||||
void ScriptEngine::include(const QStringList& includeFiles, QScriptValue callback) {
|
void ScriptEngine::include(const QStringList& includeFiles, QScriptValue callback) {
|
||||||
QList<QUrl> urls;
|
QList<QUrl> urls;
|
||||||
for (QString file : includeFiles) {
|
for (QString file : includeFiles) {
|
||||||
|
|
Loading…
Reference in a new issue