diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-09-28 08:50:18 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-09-28 08:50:18 (GMT) |
commit | 746954581f06e0bca98f25eb95dca09c663d47bf (patch) | |
tree | 849d303446cd2771b3927a1066f7886c52bef7c7 /src/declarative/qml/qdeclarativecompiler.cpp | |
parent | 040b01732a37232aad7c6cd53c5d37b10bf5a6dc (diff) | |
download | Qt-746954581f06e0bca98f25eb95dca09c663d47bf.zip Qt-746954581f06e0bca98f25eb95dca09c663d47bf.tar.gz Qt-746954581f06e0bca98f25eb95dca09c663d47bf.tar.bz2 |
If a type is registered under several names, share the attached property object
Task-number: QTBUG-13799
Diffstat (limited to 'src/declarative/qml/qdeclarativecompiler.cpp')
-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 e55dc92..8c5fd3a 100644 --- a/src/declarative/qml/qdeclarativecompiler.cpp +++ b/src/declarative/qml/qdeclarativecompiler.cpp @@ -1407,7 +1407,7 @@ bool QDeclarativeCompiler::buildProperty(QDeclarativeParser::Property *prop, COMPILE_EXCEPTION(prop, tr("Invalid attached object assignment")); Q_ASSERT(type->attachedPropertiesFunction()); - prop->index = type->index(); + prop->index = type->attachedPropertiesId(); prop->value->metatype = type->attachedPropertiesType(); } else { // Setup regular property data |