277 const QMetaObject *metaObject, Heap::QQmlValueTypeWrapper *valueTypeWrapper,
278 int index,
void **args)
280 metaObject->d.static_metacall(
281 reinterpret_cast<QObject*>(
282 valueTypeWrapper->gadgetPtr()), QMetaObject::ReadProperty, index, args);
442 const QQmlValueTypeWrapper *that =
static_cast<
const QQmlValueTypeWrapper *>(o);
444 if (that->d()->isReference() && !that->readReferenceValue())
445 return PropertyKey::invalid();
447 const QMetaObject *mo = that->d()->metaObject();
449 const int propertyCount = mo->propertyCount();
451 Scope scope(that->engine());
453 ScopedString propName(scope, that->engine()->newString(QString::fromUtf8(p.name())));
456 *attrs = QV4::Attr_Data;
458 QQmlPropertyData data;
460 pd->value = QQmlValueTypeWrapper::getGadgetProperty(
461 that->engine(), that->d(), data.propType(), data.coreIndex(), data.isFunction(),
464 return propName->toPropertyKey();
467 return ObjectOwnPropertyKeyIterator::next(o, pd, attrs);