diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2019-12-03 08:57:08 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2019-12-03 15:42:22 +0100 |
commit | 705e80b702d752633828be9ac9467090e6541c66 (patch) | |
tree | 9bee72a6eaddba29a39d25ddaf871e3b1e1ddbea /src/quick/items/qquickitemview.cpp | |
parent | fb58b94c1c8f58a5da0066eb109f96820d05ca30 (diff) |
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 <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/items/qquickitemview.cpp')
-rw-r--r-- | src/quick/items/qquickitemview.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 |