diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-05-06 05:16:35 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-05-06 05:16:35 (GMT) |
commit | 3a69c01af5f85522cc241dd95429aa87a78dc964 (patch) | |
tree | f5a23cf7e1d49212f3aac6b16a85315b1900bbbd /src/declarative/qml/qmlcontext.cpp | |
parent | f0a172d19821e37604004cd6b8fa17b998b39857 (diff) | |
parent | 4c12bcb39c5b89b12bc2296ea2c159dde6071b3b (diff) | |
download | Qt-3a69c01af5f85522cc241dd95429aa87a78dc964.zip Qt-3a69c01af5f85522cc241dd95429aa87a78dc964.tar.gz Qt-3a69c01af5f85522cc241dd95429aa87a78dc964.tar.bz2 |
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'src/declarative/qml/qmlcontext.cpp')
-rw-r--r-- | src/declarative/qml/qmlcontext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/qml/qmlcontext.cpp b/src/declarative/qml/qmlcontext.cpp index 7187c4c..dfcf413 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 |