forked from qt-creator/qt-creator
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:
@@ -64,11 +64,13 @@ FakeMetaMethod::FakeMetaMethod(const QString &name, const QString &returnType)
|
||||
, m_returnType(returnType)
|
||||
, m_methodTy(FakeMetaMethod::Method)
|
||||
, m_methodAccess(FakeMetaMethod::Public)
|
||||
, m_revision(0)
|
||||
{}
|
||||
|
||||
FakeMetaMethod::FakeMetaMethod()
|
||||
: m_methodTy(FakeMetaMethod::Method)
|
||||
, m_methodAccess(FakeMetaMethod::Public)
|
||||
, m_revision(0)
|
||||
{}
|
||||
|
||||
QString FakeMetaMethod::methodName() const
|
||||
@@ -98,9 +100,21 @@ void FakeMetaMethod::setMethodType(int methodType)
|
||||
int FakeMetaMethod::access() const
|
||||
{ return m_methodAccess; }
|
||||
|
||||
int FakeMetaMethod::revision() const
|
||||
{ return m_revision; }
|
||||
|
||||
FakeMetaProperty::FakeMetaProperty(const QString &name, const QString &type, bool isList, bool isWritable, bool isPointer)
|
||||
: m_propertyName(name), m_type(type), m_isList(isList), m_isWritable(isWritable), m_isPointer(isPointer)
|
||||
void FakeMetaMethod::setRevision(int r)
|
||||
{ m_revision = r; }
|
||||
|
||||
|
||||
FakeMetaProperty::FakeMetaProperty(const QString &name, const QString &type, bool isList,
|
||||
bool isWritable, bool isPointer, int revision)
|
||||
: m_propertyName(name)
|
||||
, m_type(type)
|
||||
, m_isList(isList)
|
||||
, m_isWritable(isWritable)
|
||||
, m_isPointer(isPointer)
|
||||
, m_revision(revision)
|
||||
{}
|
||||
|
||||
QString FakeMetaProperty::name() const
|
||||
@@ -118,6 +132,9 @@ bool FakeMetaProperty::isWritable() const
|
||||
bool FakeMetaProperty::isPointer() const
|
||||
{ return m_isPointer; }
|
||||
|
||||
int FakeMetaProperty::revision() const
|
||||
{ return m_revision; }
|
||||
|
||||
|
||||
FakeMetaObject::FakeMetaObject()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user