From baee77ef475056e045e2fa41f448a2703e2def07 Mon Sep 17 00:00:00 2001 From: Martin Jones Date: Fri, 29 Jun 2012 11:57:02 +1000 Subject: Section headers ignore list delegate size changes when "colliding" Make section header updates part of the layout process. Task-number: QTBUG-23298 Change-Id: I4586bc58bc195fcc47f6db79346727eb6e3d3845 Reviewed-by: Bea Lam --- src/quick/items/qquickgridview.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/quick/items/qquickgridview.cpp') diff --git a/src/quick/items/qquickgridview.cpp b/src/quick/items/qquickgridview.cpp index fd5b50c20b..666ee8eda9 100644 --- a/src/quick/items/qquickgridview.cpp +++ b/src/quick/items/qquickgridview.cpp @@ -1614,8 +1614,7 @@ void QQuickGridView::setCellWidth(qreal cellWidth) d->cellWidth = qMax(qreal(1), cellWidth); d->updateViewport(); emit cellWidthChanged(); - d->forceLayout = true; - polish(); + d->forceLayoutPolish(); } } @@ -1632,8 +1631,7 @@ void QQuickGridView::setCellHeight(qreal cellHeight) d->cellHeight = qMax(qreal(1), cellHeight); d->updateViewport(); emit cellHeightChanged(); - d->forceLayout = true; - polish(); + d->forceLayoutPolish(); } } /*! -- cgit v1.2.3