summaryrefslogtreecommitdiffstats
path: root/doc/src/declarative/qmlmodels.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/declarative/qmlmodels.qdoc')
-rw-r--r--doc/src/declarative/qmlmodels.qdoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/declarative/qmlmodels.qdoc b/doc/src/declarative/qmlmodels.qdoc
index 39a09bd..4843a7b 100644
--- a/doc/src/declarative/qmlmodels.qdoc
+++ b/doc/src/declarative/qmlmodels.qdoc
@@ -223,7 +223,7 @@ ListView {
anchors.fill: parent
model: myModel
delegate: Component {
- Rect {
+ Rectangle {
height: 25
Text { text: modelData }
}
@@ -258,7 +258,7 @@ dataList.append(new DataObject("Item 3", "blue"));
dataList.append(new DataObject("Item 4", "yellow"));
QmlContext *ctxt = view.rootContext();
-ctxt->setContextProperty("myModel", QVariant::fromValue(&dataList));
+ctxt->setContextProperty("myModel", QVariant::fromValue(dataList));
\endcode
The properties of the object may then be accessed in the delegate: