qt5base-lts/tests/auto/corelib/itemmodels/qitemselectionmodel
Andreas Buhr 8278879c19 Fix QItemSelectionModel::selectionChanged emission
QItemSelectionModel has the property selectedIndexes with
the notification signal selectionChanged. When a row is deleted
or inserted above the current selection, the row number of the
current selection changes and thus the return value of
selectedIndexes changes. This should trigger its notification
signal.
This signal was not emitted. This patch fixes this and
adds a unit test to verify this.

[ChangeLog][Important Behavior Changes][QtCore]
QItemSelectionModel now emits the selectionChanged signal
if only the indexes of the selected items change.

Fixes: QTBUG-93305
Change-Id: Ia5fb5ca32d658c9c0e1d7093c57cc08a966b9402
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: David Faure <david.faure@kdab.com>
2021-05-18 08:49:56 +02:00
..
.gitignore Move proxy and selection models to QtCore. 2011-12-16 13:00:57 +01:00
CMakeLists.txt Port of QItemSelectionModel::model to new property system 2021-04-27 20:12:50 +02:00
tst_qitemselectionmodel.cpp Fix QItemSelectionModel::selectionChanged emission 2021-05-18 08:49:56 +02:00