QmlJS: Read the 'revision' property generated by qmldump.

Change-Id: Ia31b1845b1e1e5aabc347dc115e580c72e36f4e3
Reviewed-on: http://codereview.qt.nokia.com/200
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
Christian Kamm
2011-05-30 09:01:52 +02:00
parent 6e32742400
commit cf7663b2de
6 changed files with 73 additions and 438 deletions

View File

@@ -94,6 +94,9 @@ public:
int access() const;
int revision() const;
void setRevision(int r);
private:
QString m_name;
QString m_returnType;
@@ -101,6 +104,7 @@ private:
QStringList m_paramTypes;
int m_methodTy;
int m_methodAccess;
int m_revision;
};
class LANGUAGEUTILS_EXPORT FakeMetaProperty {
@@ -109,9 +113,10 @@ class LANGUAGEUTILS_EXPORT FakeMetaProperty {
bool m_isList;
bool m_isWritable;
bool m_isPointer;
int m_revision;
public:
FakeMetaProperty(const QString &name, const QString &type, bool isList, bool isWritable, bool isPointer);
FakeMetaProperty(const QString &name, const QString &type, bool isList, bool isWritable, bool isPointer, int revision);
QString name() const;
QString typeName() const;
@@ -119,6 +124,7 @@ public:
bool isList() const;
bool isWritable() const;
bool isPointer() const;
int revision() const;
};
class LANGUAGEUTILS_EXPORT FakeMetaObject {