summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-08-19 05:20:04 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-08-19 05:20:04 (GMT)
commit3556cc32978f59ce6e6f23f984ed1f0a5f475c4f (patch)
tree9f8d105120af0bb4e9b9da2f66a0184c23526750 /src/declarative/qml
parent9a954d44aa20e0eb21bdf2820941bd7a1908096d (diff)
parentebdda1575dcb815e89b2d9ee16a8dc2928f61b4c (diff)
downloadQt-3556cc32978f59ce6e6f23f984ed1f0a5f475c4f.zip
Qt-3556cc32978f59ce6e6f23f984ed1f0a5f475c4f.tar.gz
Qt-3556cc32978f59ce6e6f23f984ed1f0a5f475c4f.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Conflicts: src/declarative/fx/qfxmouseregion.cpp
Diffstat (limited to 'src/declarative/qml')
-rw-r--r--src/declarative/qml/qmlcompiler.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/declarative/qml/qmlcompiler.cpp b/src/declarative/qml/qmlcompiler.cpp
index dea41ab..e04c876 100644
--- a/src/declarative/qml/qmlcompiler.cpp
+++ b/src/declarative/qml/qmlcompiler.cpp
@@ -1201,9 +1201,13 @@ bool QmlCompiler::buildProperty(QmlParser::Property *prop,
// default property or to sub-objects (which are always in binding
// sub-contexts)
COMPILE_CHECK(buildIdProperty(prop, obj));
- if (prop->type == QVariant::String &&
- prop->values.at(0)->value.isString())
+ if (prop->type == QVariant::String){
+ if(!prop->values.at(0)->value.isString()){
+ //Need to convert to string to assign to the QString id property
+ prop->values.at(0)->value = Variant(prop->values.at(0)->value.asString());
+ }
COMPILE_CHECK(buildPropertyAssignment(prop, obj, ctxt));
+ }
} else if (isAttachedPropertyName(prop->name)) {
@@ -1629,7 +1633,7 @@ bool QmlCompiler::buildListProperty(QmlParser::Property *prop,
// children: [ Item {}, Item {} ]
// }
//
-// We allow assignming multiple values to single value properties
+// We allow assigning multiple values to single value properties
bool QmlCompiler::buildPropertyAssignment(QmlParser::Property *prop,
QmlParser::Object *obj,
const BindingContext &ctxt)