diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2009-08-24 07:53:15 (GMT) |
---|---|---|
committer | Kai Koehne <kai.koehne@nokia.com> | 2009-08-24 07:58:09 (GMT) |
commit | 40c12237b506bda373f5218c13e356de025c3716 (patch) | |
tree | a2a47b3af244374aaa4923ffa3541c72ed15f9c6 /src/declarative/qml/qmldom.cpp | |
parent | 494d2d9041b7277f6d22146593ff01c7c7f7021b (diff) | |
download | Qt-40c12237b506bda373f5218c13e356de025c3716.zip Qt-40c12237b506bda373f5218c13e356de025c3716.tar.gz Qt-40c12237b506bda373f5218c13e356de025c3716.tar.bz2 |
Expose type library information in QmlDomObject
New QmlDomObject::objectTypeMajorVersion && objectTypeMinorVersion
accessors expose import library information.
Diffstat (limited to 'src/declarative/qml/qmldom.cpp')
-rw-r--r-- | src/declarative/qml/qmldom.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/declarative/qml/qmldom.cpp b/src/declarative/qml/qmldom.cpp index 22a8e49..bc35f93 100644 --- a/src/declarative/qml/qmldom.cpp +++ b/src/declarative/qml/qmldom.cpp @@ -776,6 +776,21 @@ QByteArray QmlDomObject::objectClassName() const return QByteArray(); } +int QmlDomObject::objectTypeMajorVersion() const +{ + if (d->object) + return d->object->majorVersion; + else + return -1; +} + +int QmlDomObject::objectTypeMinorVersion() const +{ + if (d->object) + return d->object->minorVersion; + else + return -1; +} /*! Returns the QML id assigned to this object, or an empty QByteArray if no id |