Commit 8160e03f authored by Thomas Hartmann's avatar Thomas Hartmann Committed by The Qt Project
Browse files

QQmlOpenMetaObjectType: extend interface for visual designer


We need those 3 functions to rebuild OpenMetaObject
in the visual designer.

Change-Id: I70affe5850f46683a049615b3173a4f30c338401
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 13e1c40b
Branches
Tags
No related merge requests found
Showing with 21 additions and 0 deletions
......@@ -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();
......
......@@ -69,6 +69,10 @@ public:
int propertyOffset() const;
int signalOffset() const;
int propertyCount() const;
QByteArray propertyName(int) const;
QMetaObject *metaObject() const;
protected:
virtual void propertyCreated(int, QMetaPropertyBuilder &);
virtual void clear();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment