From 705e80b702d752633828be9ac9467090e6541c66 Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Tue, 3 Dec 2019 08:57:08 +0100 Subject: QQuickItemView: Set moveReason to other on model change This implements Michael Brasser's suggestion in the bug report. As there do not seem to be other bug reports related to the fixupPosition change, this might already be enough. Fixes: QTBUG-66163 Change-Id: Iee45621ff7081b280626f4a81dab9bd36a7ea6b7 Reviewed-by: Shawn Rutledge --- src/quick/items/qquickitemview.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/quick/items/qquickitemview.cpp') diff --git a/src/quick/items/qquickitemview.cpp b/src/quick/items/qquickitemview.cpp index 7c74eafd3a..857b1a1c34 100644 --- a/src/quick/items/qquickitemview.cpp +++ b/src/quick/items/qquickitemview.cpp @@ -252,6 +252,7 @@ void QQuickItemView::setModel(const QVariant &m) emit countChanged(); } emit modelChanged(); + d->moveReason = QQuickItemViewPrivate::Other; } QQmlComponent *QQuickItemView::delegate() const -- cgit v1.2.3