diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-05-19 23:36:07 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-05-19 23:36:07 (GMT) |
commit | cc51d0f166354ad5acdc5ce054a83a02eeb21229 (patch) | |
tree | ac566448f16a976003e7bc9849c290da85a883ac /src/declarative/qml/qmlcontext.cpp | |
parent | 06cfcc9c8a328648d1000cc9fb1767a1b3e4d013 (diff) | |
download | Qt-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.cpp | 4 |
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 |