summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlcontext.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-05-19 23:36:07 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-05-19 23:36:07 (GMT)
commitcc51d0f166354ad5acdc5ce054a83a02eeb21229 (patch)
treeac566448f16a976003e7bc9849c290da85a883ac /src/declarative/qml/qmlcontext.cpp
parent06cfcc9c8a328648d1000cc9fb1767a1b3e4d013 (diff)
downloadQt-cc51d0f166354ad5acdc5ce054a83a02eeb21229.zip
Qt-cc51d0f166354ad5acdc5ce054a83a02eeb21229.tar.gz
Qt-cc51d0f166354ad5acdc5ce054a83a02eeb21229.tar.bz2
Fix docs.
Diffstat (limited to 'src/declarative/qml/qmlcontext.cpp')
-rw-r--r--src/declarative/qml/qmlcontext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/qml/qmlcontext.cpp b/src/declarative/qml/qmlcontext.cpp
index fa36eb1..ea72ebf 100644
--- a/src/declarative/qml/qmlcontext.cpp
+++ b/src/declarative/qml/qmlcontext.cpp
@@ -149,7 +149,7 @@ void QmlContextPrivate::addDefaultObject(QObject *object, Priority priority)
QmlContext context(engine.rootContext());
context.setContextProperty("myModel", modelData);
- QmlComponent component("ListView { model=myModel }");
+ QmlComponent component(&engine, "ListView { model=myModel }");
component.create(&context);
\endcode
@@ -176,7 +176,7 @@ void QmlContextPrivate::addDefaultObject(QObject *object, Priority priority)
QmlContext context(engine.rootContext());
context.addDefaultObject(&myDataSet);
- QmlComponent component("ListView { model=myModel }");
+ QmlComponent component(&engine, "ListView { model=myModel }");
component.create(&context);
\endcode