| 67 | } |
| 68 | |
| 69 | void *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 | |
| 81 | void *MetaObject::castTo(void *object, const QString &baseClass) const |
| 82 | { |
no test coverage detected