diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-06-25 06:37:28 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-06-25 06:37:28 (GMT) |
commit | 03df7f73de6a1fd482876caaf377a61593df8a38 (patch) | |
tree | c9e70014c4646d3b1b2a02369862a6557c87e15e /src/declarative/qml/qdeclarativecustomparser.cpp | |
parent | c91030e308f8cd9ad66e7de127a1f9dbbedd11d3 (diff) | |
download | Qt-03df7f73de6a1fd482876caaf377a61593df8a38.zip Qt-03df7f73de6a1fd482876caaf377a61593df8a38.tar.gz Qt-03df7f73de6a1fd482876caaf377a61593df8a38.tar.bz2 |
Test ListElement type via type system, not string comparison.
Task-number: QTBUG-11222
Reviewed-by: Aaron Kennedy
Diffstat (limited to 'src/declarative/qml/qdeclarativecustomparser.cpp')
-rw-r--r-- | src/declarative/qml/qdeclarativecustomparser.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/declarative/qml/qdeclarativecustomparser.cpp b/src/declarative/qml/qdeclarativecustomparser.cpp index 472a883..97a6a00 100644 --- a/src/declarative/qml/qdeclarativecustomparser.cpp +++ b/src/declarative/qml/qdeclarativecustomparser.cpp @@ -295,4 +295,14 @@ int QDeclarativeCustomParser::evaluateEnum(const QByteArray& script) const return compiler->evaluateEnum(script); } +/*! + Resolves \a name to a type, or 0 if it is not a type. This can be used + to type-check object nodes. +*/ +const QMetaObject *QDeclarativeCustomParser::resolveType(const QByteArray& name) const +{ + return compiler->resolveType(name); +} + + QT_END_NAMESPACE |