summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativegridview.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-03-01 03:53:48 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-03-01 03:53:48 (GMT)
commit2c3cc70107d2a4ae32e092703dd6a7de734bee4a (patch)
tree4fbaf498b826467b1bbfbfbf5e9cf64e2f8038b7 /src/declarative/graphicsitems/qdeclarativegridview.cpp
parent47201b118179d6585d8eac8ab27f756010024a23 (diff)
downloadQt-2c3cc70107d2a4ae32e092703dd6a7de734bee4a.zip
Qt-2c3cc70107d2a4ae32e092703dd6a7de734bee4a.tar.gz
Qt-2c3cc70107d2a4ae32e092703dd6a7de734bee4a.tar.bz2
Set delegate Z before complete() so that view Z is overridden by delegate.
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativegridview.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativegridview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativegridview.cpp b/src/declarative/graphicsitems/qdeclarativegridview.cpp
index 0a103f3..4555dca 100644
--- a/src/declarative/graphicsitems/qdeclarativegridview.cpp
+++ b/src/declarative/graphicsitems/qdeclarativegridview.cpp
@@ -315,9 +315,9 @@ FxGridItem *QDeclarativeGridViewPrivate::createItem(int modelIndex)
if (QDeclarativeItem *item = model->item(modelIndex, false)) {
listItem = new FxGridItem(item, q);
listItem->index = modelIndex;
+ listItem->item->setZValue(1);
// complete
model->completeItem();
- listItem->item->setZValue(1);
listItem->item->setParent(q->viewport());
unrequestedItems.remove(listItem->item);
}