diff --git a/src/libs/qmljs/qmljsinterpreter.cpp b/src/libs/qmljs/qmljsinterpreter.cpp index 155767615b7aeff2ecc1aedc3459e0fb9647b595..8f8c2a47443765413db9a93504f03764d6a99b55 100644 --- a/src/libs/qmljs/qmljsinterpreter.cpp +++ b/src/libs/qmljs/qmljsinterpreter.cpp @@ -231,8 +231,8 @@ void QmlObjectValue::processMembers(MemberProcessor *processor) const const Value *QmlObjectValue::propertyValue(const QMetaProperty &prop) const { - if (QmlMetaType::isObject(prop.userType())) { - QmlType *qmlPropertyType = QmlMetaType::qmlType(QmlMetaType::metaObjectForType(prop.userType())); + if (QmlMetaType::isQObject(prop.userType())) { + QmlType *qmlPropertyType = QmlMetaType::qmlType(prop.userType()); if (qmlPropertyType && !qmlPropertyType->qmlTypeName().isEmpty()) { QString typeName = qmlPropertyType->qmlTypeName(); diff --git a/src/plugins/qmldesigner/core/instances/objectnodeinstance.cpp b/src/plugins/qmldesigner/core/instances/objectnodeinstance.cpp index 3f753cc755da1a92071c3f944d2db8d85d43a0b5..34192e677825b6feca43c2099022de77e7fd0042 100644 --- a/src/plugins/qmldesigner/core/instances/objectnodeinstance.cpp +++ b/src/plugins/qmldesigner/core/instances/objectnodeinstance.cpp @@ -525,7 +525,7 @@ void ObjectNodeInstance::updateObjectSignals(QObject *object) int transformSignalIndex = QGraphicsObject::staticMetaObject.indexOfSignal("xChanged()"); // iterate over all proeprties and find the object for(int propertyIndex = QObject::staticMetaObject.propertyCount(); propertyIndex < object->metaObject()->propertyCount(); propertyIndex++) { - if (QmlMetaType::isObject(object->metaObject()->property(propertyIndex).userType())) { + if (QmlMetaType::isQObject(object->metaObject()->property(propertyIndex).userType())) { QObject *propertyObject = QmlMetaType::toQObject(object->metaObject()->property(propertyIndex).read(object)); if (propertyObject) { int signalIndex = -1;