diff options
author | Leena Miettinen <riitta-leena.miettinen@nokia.com> | 2011-08-23 14:54:35 +0200 |
---|---|---|
committer | Leena Miettinen <riitta-leena.miettinen@nokia.com> | 2011-08-23 16:04:21 +0200 |
commit | 9e1d4f83416adaa12cbabf7306a09d990a5688ea (patch) | |
tree | 622b2f8ed96bfb3e511ddaffb612e4b18fb00497 /doc/snippets | |
parent | 4088c4f7190997b1ac872cb2645b71728874c33b (diff) |
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>
Diffstat (limited to 'doc/snippets')
-rw-r--r-- | doc/snippets/qml/datamodel.qml | 15 | ||||
-rw-r--r-- | doc/snippets/qml/dummydata.qml | 8 | ||||
-rw-r--r-- | doc/snippets/qml/dummydatacontext.qml | 11 |
3 files changed, 34 insertions, 0 deletions
diff --git a/doc/snippets/qml/datamodel.qml b/doc/snippets/qml/datamodel.qml new file mode 100644 index 00000000000..90db4aacd80 --- /dev/null +++ b/doc/snippets/qml/datamodel.qml @@ -0,0 +1,15 @@ +//! [0] +import QtQuick 1.0 + +ListModel { + ListElement { + name: "Ariane" + } + ListElement { + name: "Bella" + } + ListElement { + name: "Corinna" + } +} +//! [0] diff --git a/doc/snippets/qml/dummydata.qml b/doc/snippets/qml/dummydata.qml new file mode 100644 index 00000000000..5128de62e9a --- /dev/null +++ b/doc/snippets/qml/dummydata.qml @@ -0,0 +1,8 @@ +//! [0] +ListView { + model: dataModel + delegate: ContactDelegate { + name: name + } +} +//! [0] diff --git a/doc/snippets/qml/dummydatacontext.qml b/doc/snippets/qml/dummydatacontext.qml new file mode 100644 index 00000000000..1027a7a9323 --- /dev/null +++ b/doc/snippets/qml/dummydatacontext.qml @@ -0,0 +1,11 @@ +//! [0] +import QtQuick 1.0 +import QmlDesigner 1.0 + +DummyContextObject { + parent: Item { + width: 640 + height: 300 + } +} +//! [0] |