diff options
Diffstat (limited to 'src/qml/qml/qqmlopenmetaobject.cpp')
-rw-r--r-- | src/qml/qml/qqmlopenmetaobject.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlopenmetaobject.cpp b/src/qml/qml/qqmlopenmetaobject.cpp index a92d822774..5928a6dfb7 100644 --- a/src/qml/qml/qqmlopenmetaobject.cpp +++ b/src/qml/qml/qqmlopenmetaobject.cpp @@ -96,6 +96,23 @@ int QQmlOpenMetaObjectType::signalOffset() const return d->signalOffset; } +int QQmlOpenMetaObjectType::propertyCount() const +{ + return d->names.count(); +} + +QByteArray QQmlOpenMetaObjectType::propertyName(int idx) const +{ + Q_ASSERT(idx >= 0 && idx < d->names.count()); + + return d->mob.property(idx).name(); +} + +QMetaObject *QQmlOpenMetaObjectType::metaObject() const +{ + return d->mem; +} + int QQmlOpenMetaObjectType::createProperty(const QByteArray &name) { int id = d->mob.propertyCount(); |