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
This commit is contained in:
Christian Kamm
2010-03-05 10:17:18 +01:00
parent 952f23ca34
commit bb99b7888b

View File

@@ -279,7 +279,11 @@ int main(int argc, char *argv[])
xml.writeStartDocument("1.0");
xml.writeStartElement("module");
QMap<QString, const QMetaObject *> nameToMeta;
foreach (const QMetaObject *meta, metas) {
nameToMeta.insert(convertToQmlType(meta->className()), meta);
}
foreach (const QMetaObject *meta, nameToMeta) {
dump(meta, &xml);
}