summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativecustomparser.cpp
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-06-25 06:37:28 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-06-25 06:37:28 (GMT)
commit03df7f73de6a1fd482876caaf377a61593df8a38 (patch)
treec9e70014c4646d3b1b2a02369862a6557c87e15e /src/declarative/qml/qdeclarativecustomparser.cpp
parentc91030e308f8cd9ad66e7de127a1f9dbbedd11d3 (diff)
downloadQt-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.cpp10
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