diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2016-07-12 14:49:51 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2016-07-12 13:07:24 +0000 |
commit | b55485bd4ad6d9084e15e982e457a835aeda831d (patch) | |
tree | b950644d1f06c614f58d5628e56a5013d30e0db6 /src/quick/items/qquicklistview.cpp | |
parent | 2418a36d0a83c22a12654caa5138a0bc4f84e9f3 (diff) |
Fix regression after geometry change refactoring
Commit e2c296c46b3f922ed12f83b166b1493dfded480e removed the passing
of the original geometry to the itemGeometryChanged method, and had a
wrong calculation of the original value the one place it is still
needed.
Change-Id: I69fdd89c2643b4b5d6a3483f961cf5f1de4d2dbf
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/quick/items/qquicklistview.cpp')
-rw-r--r-- | src/quick/items/qquicklistview.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/quick/items/qquicklistview.cpp b/src/quick/items/qquicklistview.cpp index cdbac55fa6..7bbc6dc9ba 100644 --- a/src/quick/items/qquicklistview.cpp +++ b/src/quick/items/qquicklistview.cpp @@ -1426,10 +1426,10 @@ void QQuickListViewPrivate::itemGeometryChanged(QQuickItem *item, QQuickGeometry // position all subsequent items if (visibleItems.count() && item == visibleItems.first()->item) { FxListItemSG *listItem = static_cast<FxListItemSG*>(visibleItems.first()); - const QRectF oldGeometry(x - diff.x(), - y - diff.y(), - width - diff.width(), - height - diff.height()); + const QRectF oldGeometry(item->x() - diff.x(), + item->y() - diff.y(), + item->width() - diff.width(), + item->height() - diff.height()); if (listItem->transitionScheduledOrRunning()) return; if (orient == QQuickListView::Vertical) { |