summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlengine.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-10-14 05:12:55 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-10-14 05:12:55 (GMT)
commit4922be635aeaf25343892a73b30ec0d99d467e37 (patch)
tree2fd2454402347a872e556442132c8b530182db39 /src/declarative/qml/qmlengine.cpp
parent339c91215f0bae4af44fe3124f41244541607a2b (diff)
downloadQt-4922be635aeaf25343892a73b30ec0d99d467e37.zip
Qt-4922be635aeaf25343892a73b30ec0d99d467e37.tar.gz
Qt-4922be635aeaf25343892a73b30ec0d99d467e37.tar.bz2
Support read-only iteration of list properties
Eventually this should be extended to support modifying list properties.
Diffstat (limited to 'src/declarative/qml/qmlengine.cpp')
-rw-r--r--src/declarative/qml/qmlengine.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlengine.cpp b/src/declarative/qml/qmlengine.cpp
index 7e95428..4dbc336 100644
--- a/src/declarative/qml/qmlengine.cpp
+++ b/src/declarative/qml/qmlengine.cpp
@@ -86,6 +86,7 @@
#include <private/qmlxmlhttprequest_p.h>
#include <private/qmlsqldatabase_p.h>
#include <private/qmltypenamescriptclass_p.h>
+#include <private/qmllistscriptclass_p.h>
#ifdef Q_OS_WIN // for %APPDATA%
#include "qt_windows.h"
@@ -173,6 +174,8 @@ QmlEnginePrivate::~QmlEnginePrivate()
valueTypeClass = 0;
delete typeNameClass;
typeNameClass = 0;
+ delete listClass;
+ listClass = 0;
delete networkAccessManager;
networkAccessManager = 0;
delete nodeListClass;
@@ -218,6 +221,7 @@ void QmlEnginePrivate::init()
objectClass = new QmlObjectScriptClass(q);
valueTypeClass = new QmlValueTypeScriptClass(q);
typeNameClass = new QmlTypeNameScriptClass(q);
+ listClass = new QmlListScriptClass(q);
rootContext = new QmlContext(q,true);
#ifdef QT_SCRIPTTOOLS_LIB
if (qmlDebugger()){