Add comment to ScriptEngine::include()

This commit is contained in:
Ryan Huffman 2015-01-29 09:08:55 -08:00
parent ce9e8910e4
commit e6caefa023

View file

@ -596,6 +596,12 @@ void ScriptEngine::print(const QString& 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) {
QList<QUrl> urls;
for (QString file : includeFiles) {