From aa01490d56c8002a3b782b9016ba6eecefd1ef35 Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Mon, 11 Jan 2010 11:44:16 +0100 Subject: Doc fixes Explictly mention that root items in delegates need a size. --- src/declarative/graphicsitems/qmlgraphicsgridview.cpp | 3 +++ src/declarative/graphicsitems/qmlgraphicslistview.cpp | 3 +++ src/declarative/graphicsitems/qmlgraphicspathview.cpp | 3 +++ 3 files changed, 9 insertions(+) diff --git a/src/declarative/graphicsitems/qmlgraphicsgridview.cpp b/src/declarative/graphicsitems/qmlgraphicsgridview.cpp index 0ba1491..2fad3bb 100644 --- a/src/declarative/graphicsitems/qmlgraphicsgridview.cpp +++ b/src/declarative/graphicsitems/qmlgraphicsgridview.cpp @@ -874,6 +874,9 @@ void QmlGraphicsGridView::setModel(const QVariant &model) The index is exposed as an accessible \c index property. Properties of the model are also available depending upon the type of \l {qmlmodels}{Data Model}. + Note that the GridView will layout the items based on the size of the root item + in the delegate. + Here is an example delegate: \snippet doc/src/snippets/declarative/gridview/gridview.qml 0 */ diff --git a/src/declarative/graphicsitems/qmlgraphicslistview.cpp b/src/declarative/graphicsitems/qmlgraphicslistview.cpp index 6460a69..3a59c6c 100644 --- a/src/declarative/graphicsitems/qmlgraphicslistview.cpp +++ b/src/declarative/graphicsitems/qmlgraphicslistview.cpp @@ -1554,6 +1554,9 @@ void QmlGraphicsListView::setModel(const QVariant &model) The index is exposed as an accessible \c index property. Properties of the model are also available depending upon the type of \l {qmlmodels}{Data Model}. + Note that the ListView will layout the items based on the size of the root item + in the delegate. + Here is an example delegate: \snippet doc/src/snippets/declarative/listview/listview.qml 0 */ diff --git a/src/declarative/graphicsitems/qmlgraphicspathview.cpp b/src/declarative/graphicsitems/qmlgraphicspathview.cpp index b9c9e05..8ac57e0 100644 --- a/src/declarative/graphicsitems/qmlgraphicspathview.cpp +++ b/src/declarative/graphicsitems/qmlgraphicspathview.cpp @@ -302,6 +302,9 @@ void QmlGraphicsPathView::setDragMargin(qreal dragMargin) The index is exposed as an accessible \c index property. Properties of the model are also available depending upon the type of \l {qmlmodels}{Data Model}. + Note that the PathView will layout the items based on the size of the root + item in the delegate. + Here is an example delegate: \snippet doc/src/snippets/declarative/pathview/pathview.qml 1 */ -- cgit v0.12