qt5base-lts/tests/auto/corelib/itemmodels
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
..
qabstractitemmodel Make sure QMimeData is fully declared 2021-01-11 16:57:41 +01:00
qabstractproxymodel QAbstractProxyModel: port to new property system 2021-05-04 22:58:59 +02:00
qconcatenatetablesproxymodel Fix get out of bounds index in QSortFilterProxyModel::filterAcceptsRow 2021-04-07 19:30:08 +08:00
qidentityproxymodel Remove the qmake project files 2021-01-07 15:32:28 +01:00
qitemmodel Remove the qmake project files 2021-01-07 15:32:28 +01:00
qitemselectionmodel Fix QItemSelectionModel::selectionChanged emission 2021-05-18 08:49:56 +02:00
qsortfilterproxymodel_common QSFPM: make filterRegularExpression and filterCaseSensitivity bindable 2021-05-11 21:05:09 +02:00
qsortfilterproxymodel_recursive Remove the qmake project files 2021-01-07 15:32:28 +01:00
qsortfilterproxymodel_regularexpression QSortFilterProxyModel: port to new property system 2021-05-11 21:05:09 +02:00
qstringlistmodel Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtransposeproxymodel Remove the qmake project files 2021-01-07 15:32:28 +01:00
CMakeLists.txt Remove QRegExp support from QSortFilterProxyModel 2020-04-15 14:38:40 +02:00