forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user