summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChristian Kamm <christian.d.kamm@nokia.com>2011-05-30 09:24:20 +0200
committerChristian Kamm <christian.d.kamm@nokia.com>2011-05-30 11:25:51 +0200
commit609c3920cd90181e59d9a699cee632bcbf68366b (patch)
treed8d120599c0b4e97b3f0a5be62d61bd0a5b34bf3 /tools
parent16e75d93ebe652f6e5b919aa89809a92881a37e7 (diff)
qmlplugindump: Dump revision property.
Mirrors a change to qmldump in qt-creator/6e3274240077fc356a37d3de735b3b2da9654d2e Reviewed-by: Roberto Raggi (cherry picked from commit b0392d398e2f28682cdce6e85546d38a838440f7)
Diffstat (limited to 'tools')
-rw-r--r--tools/qmlplugindump/main.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/qmlplugindump/main.cpp b/tools/qmlplugindump/main.cpp
index c2d2681b42..e6bf24c316 100644
--- a/tools/qmlplugindump/main.cpp
+++ b/tools/qmlplugindump/main.cpp
@@ -336,6 +336,10 @@ private:
qml->writeStartObject("Property");
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());
qml->writeEndObject();
@@ -364,6 +368,11 @@ private:
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());
if (! typeName.isEmpty())
qml->writeScriptBinding(QLatin1String("type"), enquote(typeName));