summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativecompiler.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-09-28 08:50:18 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-09-28 08:50:18 (GMT)
commit746954581f06e0bca98f25eb95dca09c663d47bf (patch)
tree849d303446cd2771b3927a1066f7886c52bef7c7 /src/declarative/qml/qdeclarativecompiler.cpp
parent040b01732a37232aad7c6cd53c5d37b10bf5a6dc (diff)
downloadQt-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.cpp2
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