aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/items
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2011-07-18 13:29:18 +1000
committerQt by Nokia <qt-info@nokia.com>2011-07-22 02:21:16 +0200
commitb3ff60a43d0612ee12da18afff34941c6b307cdc (patch)
treea2991ce3ace662adbac2da48d7b25e44e4a1ade5 /src/declarative/items
parentb095e7f7b79b537433f955214d5d0d1de3f12df1 (diff)
Fix layout bug from view refactoring
GridView should call layout() not layoutVisibleItems() in setCellWidth(), setCellHeight() and itemsMoved() Bug introduced when refactoring view code into QSGItemView. Change-Id: I48bc63c0a08c10c005bf45a2a7902cb01632cbf9 Reviewed-on: http://codereview.qt.nokia.com/1726 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Bea Lam <bea.lam@nokia.com>
Diffstat (limited to 'src/declarative/items')
-rw-r--r--src/declarative/items/qsggridview.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/declarative/items/qsggridview.cpp b/src/declarative/items/qsggridview.cpp
index ef660c0533..8d91a410fa 100644
--- a/src/declarative/items/qsggridview.cpp
+++ b/src/declarative/items/qsggridview.cpp
@@ -1021,7 +1021,7 @@ void QSGGridView::setCellWidth(int cellWidth)
d->cellWidth = qMax(1, cellWidth);
d->updateViewport();
emit cellWidthChanged();
- d->layoutVisibleItems();
+ d->layout();
}
}
@@ -1038,7 +1038,7 @@ void QSGGridView::setCellHeight(int cellHeight)
d->cellHeight = qMax(1, cellHeight);
d->updateViewport();
emit cellHeightChanged();
- d->layoutVisibleItems();
+ d->layout();
}
}
@@ -1566,7 +1566,7 @@ void QSGGridView::itemsMoved(int from, int to, int count)
d->releaseItem(item);
}
- d->layoutVisibleItems();
+ d->layout();
}