Commit 221fc011 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Compile.

parent 9245c7ba
......@@ -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();
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment