From bb99b7888b6577fd64fcbfd17d250b489bde1b5e Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Fri, 5 Mar 2010 10:17:18 +0100 Subject: [PATCH] In the XML describing the Qml types, order the types by name. This should allow diffs of the generated file to be more meaningful. Reviewed-by: Roberto Raggi --- src/tools/qml/qmldump/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tools/qml/qmldump/main.cpp b/src/tools/qml/qmldump/main.cpp index de026a3c297..08e451e6b09 100644 --- a/src/tools/qml/qmldump/main.cpp +++ b/src/tools/qml/qmldump/main.cpp @@ -279,7 +279,11 @@ int main(int argc, char *argv[]) xml.writeStartDocument("1.0"); xml.writeStartElement("module"); + QMap nameToMeta; foreach (const QMetaObject *meta, metas) { + nameToMeta.insert(convertToQmlType(meta->className()), meta); + } + foreach (const QMetaObject *meta, nameToMeta) { dump(meta, &xml); }