summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-06-01 06:27:59 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-06-02 00:07:33 (GMT)
commit9cb0802cede5f9fd91ca303bcec5ae869acae951 (patch)
treef90d5fed5004dfa7e526783d81f94f04444313e4 /src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
parent2e904930ede28a59710ef6f898419aba7ede7c06 (diff)
downloadQt-9cb0802cede5f9fd91ca303bcec5ae869acae951.zip
Qt-9cb0802cede5f9fd91ca303bcec5ae869acae951.tar.gz
Qt-9cb0802cede5f9fd91ca303bcec5ae869acae951.tar.bz2
Doc fixes and improvements - fix some example code, link to
examples from class docs and improve assorted docs
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp b/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
index c6ee46f..2a88a80 100644
--- a/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
+++ b/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
@@ -119,11 +119,11 @@ public:
visual delegate (items).
An item can determine its index within the
- model via the VisualItemModel.index attached property.
+ model via the \c VisualItemModel.index attached property.
The example below places three colored rectangles in a ListView.
\code
- Item {
+ Rectangle {
VisualItemModel {
id: itemModel
Rectangle { height: 30; width: 80; color: "red" }
@@ -137,6 +137,8 @@ public:
}
}
\endcode
+
+ \image visualitemmodel.png
*/
QDeclarativeVisualItemModel::QDeclarativeVisualItemModel(QObject *parent)
: QDeclarativeVisualModel(*(new QDeclarativeVisualItemModelPrivate), parent)