From d89f1dbe16b80b5e375f213c45b6130443f61a48 Mon Sep 17 00:00:00 2001 From: Fabian Bumberger Date: Mon, 14 Jan 2013 16:01:38 +0100 Subject: [PATCH] Fixing a mistake in the GridView documentation The item size of the GridView is solely determined by the cellHeight and cellWidth property. I.e. the GridView will not resize the cells based on the root item size of the delegate. Change-Id: I007e4b1719d78ebf126d166c89bfe6c64e2206f7 Reviewed-by: Alan Alpert --- src/quick/items/qquickgridview.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/quick/items/qquickgridview.cpp b/src/quick/items/qquickgridview.cpp index b3783ba..fd9ce9f 100644 --- a/src/quick/items/qquickgridview.cpp +++ b/src/quick/items/qquickgridview.cpp @@ -1350,8 +1350,8 @@ void QQuickGridView::setHighlightFollowsCurrentItem(bool autoHighlight) that is not needed for the normal display of the delegate in a \l Loader which can load additional components when needed. - The GridView will layout the items based on the size of the root item - in the delegate. + The item size of the GridView is determined by cellHeight and cellWidth. It will not resize the items + based on the size of the root item in the delegate. \note Delegates are instantiated as needed and may be destroyed at any time. State should \e never be stored in a delegate. -- 1.7.2.5