summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-04-27 01:55:42 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-04-27 01:56:46 (GMT)
commit04a2350db6ef1fffa3c81c747b4474e92d1af70d (patch)
tree588ad47e0bce498d5055e0d88c1c4de5fe7e93ca /src/declarative
parentddc7fcee9c3602bcbb79a6b8538315a633fa3db4 (diff)
downloadQt-04a2350db6ef1fffa3c81c747b4474e92d1af70d.zip
Qt-04a2350db6ef1fffa3c81c747b4474e92d1af70d.tar.gz
Qt-04a2350db6ef1fffa3c81c747b4474e92d1af70d.tar.bz2
Correctly inherit extension properties
Correct a typo that breaks extension properties in some cases.
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/qml/qdeclarativemetatype.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativemetatype.cpp b/src/declarative/qml/qdeclarativemetatype.cpp
index d9ea8dc..5fcb7ee 100644
--- a/src/declarative/qml/qdeclarativemetatype.cpp
+++ b/src/declarative/qml/qdeclarativemetatype.cpp
@@ -247,7 +247,7 @@ static void clone(QMetaObjectBuilder &builder, const QMetaObject *mo,
QMetaProperty property = mo->property(ii);
int otherIndex = ignoreEnd->indexOfProperty(property.name());
- if (otherIndex >= ignoreStart->classInfoOffset() + ignoreStart->classInfoCount()) {
+ if (otherIndex >= ignoreStart->propertyOffset() + ignoreStart->propertyCount()) {
builder.addProperty(QByteArray("__qml_ignore__") + property.name(), QByteArray("void"));
// Skip
} else {