summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativeengine_p.h
diff options
context:
space:
mode:
authormae <qt-info@nokia.com>2010-03-19 15:18:11 (GMT)
committermae <qt-info@nokia.com>2010-03-19 15:18:54 (GMT)
commit3cc7cac6c205897c60d879c01f8733351c86cdf9 (patch)
treecba8682829bb703ec59d8322b2ec202f336ee20d /src/declarative/qml/qdeclarativeengine_p.h
parentd039e2e8307bd272eedc5beae4ecf1a14e47def5 (diff)
downloadQt-3cc7cac6c205897c60d879c01f8733351c86cdf9.zip
Qt-3cc7cac6c205897c60d879c01f8733351c86cdf9.tar.gz
Qt-3cc7cac6c205897c60d879c01f8733351c86cdf9.tar.bz2
Reduce amount of qmldir parsing
This is done by storing the parsed components (QDeclarativeDirComponents). There's still potential for optimization (QT-617)
Diffstat (limited to 'src/declarative/qml/qdeclarativeengine_p.h')
-rw-r--r--src/declarative/qml/qdeclarativeengine_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativeengine_p.h b/src/declarative/qml/qdeclarativeengine_p.h
index f1b7b0e..4ab619e 100644
--- a/src/declarative/qml/qdeclarativeengine_p.h
+++ b/src/declarative/qml/qdeclarativeengine_p.h
@@ -69,6 +69,7 @@
#include "qdeclarativecontextscriptclass_p.h"
#include "qdeclarativevaluetypescriptclass_p.h"
#include "qdeclarativemetatype_p.h"
+#include "qdeclarativedirparser_p.h"
#include <QtScript/QScriptClass>
#include <QtScript/QScriptValue>
@@ -280,7 +281,7 @@ public:
QString resolvePlugin(const QDir &dir, const QString &baseName);
- bool addToImport(Imports*, const QString& uri, const QString &qmldircontentnetwork, const QString& prefix, int vmaj, int vmin, QDeclarativeScriptParser::Import::Type importType) const;
+ bool addToImport(Imports*, const QDeclarativeDirComponents &qmldircomponentsnetwork, const QString& uri, const QString& prefix, int vmaj, int vmin, QDeclarativeScriptParser::Import::Type importType) const;
bool resolveType(const Imports&, const QByteArray& type,
QDeclarativeType** type_return, QUrl* url_return,
int *version_major, int *version_minor,