diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-04-09 14:31:17 (GMT) |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-04-24 07:52:32 (GMT) |
commit | 352159138ee768a1b3387cf043663b18f0e1e293 (patch) | |
tree | dd96f4adccff45811b8f7c410cc0ebd5b8d09819 /src/declarative/qml/qmldom.cpp | |
parent | 0fe8ca07873ec6b528255c2a25f537ff959e3353 (diff) | |
download | Qt-352159138ee768a1b3387cf043663b18f0e1e293.zip Qt-352159138ee768a1b3387cf043663b18f0e1e293.tar.gz Qt-352159138ee768a1b3387cf043663b18f0e1e293.tar.bz2 |
Initial work on the qfx front-end.
Diffstat (limited to 'src/declarative/qml/qmldom.cpp')
-rw-r--r-- | src/declarative/qml/qmldom.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/declarative/qml/qmldom.cpp b/src/declarative/qml/qmldom.cpp index 274b542..0fe9111 100644 --- a/src/declarative/qml/qmldom.cpp +++ b/src/declarative/qml/qmldom.cpp @@ -47,6 +47,8 @@ #include <QtCore/qbytearray.h> #include <QtCore/qstring.h> +#include "qmlscriptparser_p.h" + QT_BEGIN_NAMESPACE QmlDomDocumentPrivate::QmlDomDocumentPrivate() @@ -150,7 +152,11 @@ bool QmlDomDocument::load(QmlEngine *engine, const QByteArray &data) { d->error = QString(); - QmlXmlParser parser; +#ifdef QML_WITH_XML_PARSER + QmlXmlParser parser; +#else + QmlScriptParser parser; +#endif if(!parser.parse(data)) { d->error = parser.errorDescription(); return false; |