summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlcontext.cpp
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-05-06 04:39:01 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-05-06 04:39:01 (GMT)
commit8f23ea2dc59afaf74a7699aa9334dc7ec61e9d4f (patch)
tree014c8780414c46c290c6a8f3af10c9adffd1d812 /src/declarative/qml/qmlcontext.cpp
parentbcfb24b17cf5c97c734c82ca2072eb8b13b80eec (diff)
downloadQt-8f23ea2dc59afaf74a7699aa9334dc7ec61e9d4f.zip
Qt-8f23ea2dc59afaf74a7699aa9334dc7ec61e9d4f.tar.gz
Qt-8f23ea2dc59afaf74a7699aa9334dc7ec61e9d4f.tar.bz2
doc
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 68453c3..cf33610 100644
--- a/src/declarative/qml/qmlcontext.cpp
+++ b/src/declarative/qml/qmlcontext.cpp
@@ -136,7 +136,7 @@ void QmlContextPrivate::addDefaultObject(QObject *object, Priority priority)
QmlContext context(engine.rootContext());
context.setContextProperty("myModel", modelData);
- QmlComponent component("<ListView model=\"{myModel}\" />");
+ QmlComponent component("ListView { model=myModel }");
component.create(&context);
\endcode
@@ -163,7 +163,7 @@ void QmlContextPrivate::addDefaultObject(QObject *object, Priority priority)
QmlContext context(engine.rootContext());
context.addDefaultObject(&myDataSet);
- QmlComponent component("<ListView model=\"{myModel}\" />");
+ QmlComponent component("ListView { model=myModel }");
component.create(&context);
\endcode