Doc: using dummy data and context

Change-Id: Ia054de58fd1ae6204c327c2a17001a5050128732
Reviewed-on: http://codereview.qt.nokia.com/3405
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Marco Bubke <marco.bubke@nokia.com>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
This commit is contained in:
Leena Miettinen
2011-08-23 14:54:35 +02:00
parent 4088c4f719
commit 9e1d4f8341
4 changed files with 75 additions and 37 deletions
+15
View File
@@ -0,0 +1,15 @@
//! [0]
import QtQuick 1.0
ListModel {
ListElement {
name: "Ariane"
}
ListElement {
name: "Bella"
}
ListElement {
name: "Corinna"
}
}
//! [0]
+8
View File
@@ -0,0 +1,8 @@
//! [0]
ListView {
model: dataModel
delegate: ContactDelegate {
name: name
}
}
//! [0]
+11
View File
@@ -0,0 +1,11 @@
//! [0]
import QtQuick 1.0
import QmlDesigner 1.0
DummyContextObject {
parent: Item {
width: 640
height: 300
}
}
//! [0]