MCPcopy Create free account
hub / github.com/KDAB/GammaRay / castForPropertyAt

Method castForPropertyAt

core/metaobject.cpp:69–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void *MetaObject::castForPropertyAt(void *object, int index) const
70{
71 for (int i = 0; i < m_baseClasses.size(); ++i) {
72 const MetaObject *base = m_baseClasses.at(i);
73 if (index >= base->propertyCount())
74 index -= base->propertyCount();
75 else
76 return base->castForPropertyAt(castToBaseClass(object, i), index);
77 }
78 return object; // our own property
79}
80
81void *MetaObject::castTo(void *object, const QString &baseClass) const
82{

Callers 2

propertyDataMethod · 0.80
writePropertyMethod · 0.80

Calls 2

propertyCountMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected