src/declarative/qml/qdeclarativecustomparser.cpp
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
--- a/src/declarative/qml/qdeclarativecustomparser.cpp	Tue Jul 06 15:10:48 2010 +0300
+++ b/src/declarative/qml/qdeclarativecustomparser.cpp	Wed Aug 18 10:37:55 2010 +0300
@@ -295,4 +295,14 @@
     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