278 const QMetaObject *metaObject, Heap::QQmlValueTypeWrapper *valueTypeWrapper,
279 int index,
void **args)
281 metaObject->d.static_metacall(
282 reinterpret_cast<QObject*>(
283 valueTypeWrapper->gadgetPtr()), QMetaObject::ReadProperty, index, args);
443 const QQmlValueTypeWrapper *that =
static_cast<
const QQmlValueTypeWrapper *>(o);
445 if (that->d()->isReference() && !that->readReferenceValue())
446 return PropertyKey::invalid();
448 const QMetaObject *mo = that->d()->metaObject();
450 const int propertyCount = mo->propertyCount();
452 Scope scope(that->engine());
454 ScopedString propName(scope, that->engine()->newString(QString::fromUtf8(p.name())));
457 *attrs = QV4::Attr_Data;
459 QQmlPropertyData data;
461 pd->value = QQmlValueTypeWrapper::getGadgetProperty(
462 that->engine(), that->d(), data.propType(), data.coreIndex(), data.isFunction(),
465 return propName->toPropertyKey();
468 return ObjectOwnPropertyKeyIterator::next(o, pd, attrs);