aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/items/qsggridview.cpp
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2011-05-02 16:58:33 +0200
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2011-05-02 16:58:33 +0200
commitfc345a6c356fdcdd28a67d212bb6750b2f494634 (patch)
tree5631731db9547af91ab0b81a5c16d48adff10cc3 /src/declarative/items/qsggridview.cpp
parent92970522b602844cbf932d5df6b62d6cf51e4416 (diff)
Set ChildenDoNotOverlap flag on grids, lists and positioners.
QSGGridView, QSGListView, QSGRow, QSGColumn, QSGGrid and QSGFlow now all set the ChildrenDoNotOverlap flag which allows the scene graph to render nodes in a more optimal order.
Diffstat (limited to 'src/declarative/items/qsggridview.cpp')
-rw-r--r--src/declarative/items/qsggridview.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/items/qsggridview.cpp b/src/declarative/items/qsggridview.cpp
index 9beac05d72..4f00d3651f 100644
--- a/src/declarative/items/qsggridview.cpp
+++ b/src/declarative/items/qsggridview.cpp
@@ -488,6 +488,7 @@ public:
void QSGGridViewPrivate::init()
{
Q_Q(QSGGridView);
+ QSGItemPrivate::get(contentItem)->childrenDoNotOverlap = true;
QObject::connect(q, SIGNAL(movementEnded()), q, SLOT(animStopped()));
q->setFlag(QSGItem::ItemIsFocusScope);
q->setFlickableDirection(QSGFlickable::VerticalFlick);