forked from qt-creator/qt-creator
qmldump: Add dumping of 'revision' for Qt >= 4.7.4.
Change-Id: Ib86c771be9540e22b48685eacd29d81056b53588 Reviewed-on: http://codereview.qt.nokia.com/199 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
@@ -330,6 +330,10 @@ private:
|
|||||||
qml->writeStartObject("Property");
|
qml->writeStartObject("Property");
|
||||||
|
|
||||||
qml->writeScriptBinding(QLatin1String("name"), enquote(QString::fromUtf8(prop.name())));
|
qml->writeScriptBinding(QLatin1String("name"), enquote(QString::fromUtf8(prop.name())));
|
||||||
|
#if (QT_VERSION >= QT_VERSION_CHECK(4, 7, 4))
|
||||||
|
if (int revision = prop.revision())
|
||||||
|
qml->writeScriptBinding(QLatin1String("revision"), QString::number(revision));
|
||||||
|
#endif
|
||||||
writeTypeProperties(prop.typeName(), prop.isWritable());
|
writeTypeProperties(prop.typeName(), prop.isWritable());
|
||||||
|
|
||||||
qml->writeEndObject();
|
qml->writeEndObject();
|
||||||
@@ -358,6 +362,11 @@ private:
|
|||||||
|
|
||||||
qml->writeScriptBinding(QLatin1String("name"), enquote(name));
|
qml->writeScriptBinding(QLatin1String("name"), enquote(name));
|
||||||
|
|
||||||
|
#if (QT_VERSION >= QT_VERSION_CHECK(4, 7, 4))
|
||||||
|
if (int revision = meth.revision())
|
||||||
|
qml->writeScriptBinding(QLatin1String("revision"), QString::number(revision));
|
||||||
|
#endif
|
||||||
|
|
||||||
const QString typeName = convertToId(meth.typeName());
|
const QString typeName = convertToId(meth.typeName());
|
||||||
if (! typeName.isEmpty())
|
if (! typeName.isEmpty())
|
||||||
qml->writeScriptBinding(QLatin1String("type"), enquote(typeName));
|
qml->writeScriptBinding(QLatin1String("type"), enquote(typeName));
|
||||||
|
Reference in New Issue
Block a user