summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Kamm <christian.d.kamm@nokia.com>2010-04-29 13:52:12 +0200
committerChristian Kamm <christian.d.kamm@nokia.com>2010-04-29 16:05:24 +0200
commitcb04bea92d3fc575bc728a1e83e9161acbd64768 (patch)
tree45d64086f9857fac79df69caacec37931d534b46 /src
parent61c1ac37a039a16590e9b6fbb12eaa093afab66a (diff)
downloadqt-creator-cb04bea92d3fc575bc728a1e83e9161acbd64768.tar.gz
QmlJS: Fix qmldump to ignore extending types and update type xml.
Done-with: Erik Verbruggen
Diffstat (limited to 'src')
-rw-r--r--src/tools/qml/qmldump/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tools/qml/qmldump/main.cpp b/src/tools/qml/qmldump/main.cpp
index c5ab8257db..cabb550371 100644
--- a/src/tools/qml/qmldump/main.cpp
+++ b/src/tools/qml/qmldump/main.cpp
@@ -273,13 +273,21 @@ int main(int argc, char *argv[])
metas.insert(FriendlyQObject::qtMeta());
+ // ### TODO: We don't treat extended types correctly. Currently only hits the
+ // QDeclarativeGraphicsWidget extension to QGraphicsWidget
foreach (const QDeclarativeType *ty, QDeclarativeMetaType::qmlTypes()) {
+ if (ty->isExtendedType())
+ continue;
+
cppToQml.insert(ty->metaObject()->className(), ty->qmlTypeName());
qmlTypeByCppName.insert(ty->metaObject()->className(), ty);
processDeclarativeType(ty, &metas);
}
foreach (const QDeclarativeType *ty, QDeclarativeMetaType::qmlTypes()) {
+ if (ty->isExtendedType())
+ continue;
+
QByteArray tyName = ty->qmlTypeName();
tyName = tyName.mid(tyName.lastIndexOf('/') + 1);