Commit 206c190e authored by Christian Kamm's avatar Christian Kamm
Browse files

QmlJS: Make qmldump not dump open/dynamic meta objects.

They would need special treatment, like the Qml extended objects. The
issue is they lead to two meta objects with the same classname and the
dumper can't handle that.
parent 649cebda
......@@ -9,7 +9,10 @@
#include <QDebug>
#include <iostream>
#include <QtDeclarative>
#include <QtCore/private/qobject_p.h>
#include <QtCore/private/qmetaobject_p.h>
#include <QtDeclarative/private/qdeclarativemetatype_p.h>
#include <QtDeclarative/private/qdeclarativeopenmetaobject_p.h>
#include <QtDeclarative/QDeclarativeView>
static QHash<QByteArray, const QDeclarativeType *> qmlTypeByCppName;
......@@ -47,7 +50,11 @@ void processMetaObject(const QMetaObject *meta, QSet<const QMetaObject *> *metas
if (! meta || metas->contains(meta))
// dynamic meta objects break things badly
const QMetaObjectPrivate *mop = reinterpret_cast<const QMetaObjectPrivate *>(meta->;
if (!(mop->flags & DynamicMetaObject))
processMetaObject(meta->superClass(), metas);
Supports Markdown
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