summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlscriptparser.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-11-30 05:52:09 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-11-30 05:52:09 (GMT)
commitc4cd2138ea46f9e7990bd732b63d7322f21a2f38 (patch)
tree0a7409383632a29b95ea48087be6935b6b494139 /src/declarative/qml/qmlscriptparser.cpp
parent541c254ce91ea7dea01081f0b093b902527c3476 (diff)
parent68e3cab8a8183a5a88e5be092471a05692e05afe (diff)
downloadQt-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.cpp8
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));
}
}
}