diff --git a/src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp b/src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp index e068a4f4ffa1d337e061ca83b67510fd224b82e8..cef87a80eb6d6124da617933aeecf8f648f858ad 100644 --- a/src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp +++ b/src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp @@ -282,9 +282,9 @@ QList<PropertyInfo> getQmlTypes(const CppComponentValue *objectValue, const Cont const CppComponentValue * qmlObjectValue = value_cast<CppComponentValue>(prototype); if (qmlObjectValue) - propertyList.append(getQmlTypes(qmlObjectValue, context, false, rec + 1)); + propertyList.append(getQmlTypes(qmlObjectValue, context, false, rec)); else - propertyList.append(getObjectTypes(prototype, context, false, rec + 1)); + propertyList.append(getObjectTypes(prototype, context, false, rec)); } return propertyList; @@ -356,9 +356,9 @@ QList<PropertyInfo> getObjectTypes(const ObjectValue *objectValue, const Context const CppComponentValue * qmlObjectValue = value_cast<CppComponentValue>(prototype); if (qmlObjectValue) - propertyList.append(getQmlTypes(qmlObjectValue, context, local, rec + 1)); + propertyList.append(getQmlTypes(qmlObjectValue, context, local, rec)); else - propertyList.append(getObjectTypes(prototype, context, local, rec + 1)); + propertyList.append(getObjectTypes(prototype, context, local, rec)); } return propertyList;