diff options
author | Christian Kamm <christian.d.kamm@nokia.com> | 2011-05-30 07:24:20 (GMT) |
---|---|---|
committer | Christian Kamm <christian.d.kamm@nokia.com> | 2011-05-30 08:15:31 (GMT) |
commit | b0392d398e2f28682cdce6e85546d38a838440f7 (patch) | |
tree | 4f3d279acf2221bf249d1c343bd752e2b97e2e95 /tools | |
parent | 49a94f19b6a4407df42b8462e52922bec42de1ba (diff) | |
download | Qt-b0392d398e2f28682cdce6e85546d38a838440f7.zip Qt-b0392d398e2f28682cdce6e85546d38a838440f7.tar.gz Qt-b0392d398e2f28682cdce6e85546d38a838440f7.tar.bz2 |
qmlplugindump: Dump revision property.
Mirrors a change to qmldump in
qt-creator/6e3274240077fc356a37d3de735b3b2da9654d2e
Reviewed-by: Roberto Raggi
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qmlplugindump/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/qmlplugindump/main.cpp b/tools/qmlplugindump/main.cpp index 03bc313..acc1b19 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)); |