diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2012-02-23 09:50:15 +0000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-24 07:02:16 +0100 |
commit | c4e177c049c2cd1513d81421dab31f8d4b5123e4 (patch) | |
tree | 2a3524987859c7ef4c575629e0a4c14b39eff39f /src/declarative | |
parent | 5fee1e79cc1c18acf58f9171a73a7525154a65cd (diff) |
Allow V8 bindings to assign to value type sub properties
This was an overly defensive change because it wasn't clear if the isAlias
check would catch aliased value type sub properties.
Change-Id: Iee2805d22f281c1fd188b14e265687fd8e7042db
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/qml/qdeclarativecompiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativecompiler.cpp b/src/declarative/qml/qdeclarativecompiler.cpp index c4efc85461..b7b882cd97 100644 --- a/src/declarative/qml/qdeclarativecompiler.cpp +++ b/src/declarative/qml/qdeclarativecompiler.cpp @@ -3609,7 +3609,7 @@ bool QDeclarativeCompiler::completeComponentBuild() bool isSharable = false; binding.rewrittenExpression = rewriteBinding(binding.expression.asAST(), expression, &isSharable); - if (isSharable && !binding.property->isValueTypeSubProperty && !binding.property->isAlias /* See above re alias */ && + if (isSharable && !binding.property->isAlias /* See above re alias */ && binding.property->type != qMetaTypeId<QDeclarativeBinding*>()) { binding.dataType = BindingReference::V8; sharedBindings.append(b); |