diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-11-30 05:52:09 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-11-30 05:52:09 (GMT) |
commit | c4cd2138ea46f9e7990bd732b63d7322f21a2f38 (patch) | |
tree | 0a7409383632a29b95ea48087be6935b6b494139 /src/declarative/qml/qmlscriptparser.cpp | |
parent | 541c254ce91ea7dea01081f0b093b902527c3476 (diff) | |
parent | 68e3cab8a8183a5a88e5be092471a05692e05afe (diff) | |
download | Qt-c4cd2138ea46f9e7990bd732b63d7322f21a2f38.zip Qt-c4cd2138ea46f9e7990bd732b63d7322f21a2f38.tar.gz Qt-c4cd2138ea46f9e7990bd732b63d7322f21a2f38.tar.bz2 |
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'src/declarative/qml/qmlscriptparser.cpp')
-rw-r--r-- | src/declarative/qml/qmlscriptparser.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/declarative/qml/qmlscriptparser.cpp b/src/declarative/qml/qmlscriptparser.cpp index b622c24..23c050c 100644 --- a/src/declarative/qml/qmlscriptparser.cpp +++ b/src/declarative/qml/qmlscriptparser.cpp @@ -383,10 +383,12 @@ Object *ProcessAST::defineObjectBinding(AST::UiQualifiedId *qualifiedId, QString propertyName = asString(scriptBinding->qualifiedId); if (propertyName == QLatin1String("source")) { if (AST::ExpressionStatement *stmt = AST::cast<AST::ExpressionStatement *>(scriptBinding->statement)) { - AST::StringLiteral *string = AST::cast<AST::StringLiteral *>(stmt->expression); - if (string) { + QmlParser::Variant string = getVariant(stmt->expression); + if (string.isStringList()) { + QStringList urls = string.asStringList(); // We need to add this as a resource - _parser->_refUrls << QUrl(string->value->asString()); + for (int ii = 0; ii < urls.count(); ++ii) + _parser->_refUrls << QUrl(urls.at(ii)); } } } |