8278879c19
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> |
||
---|---|---|
.. | ||
qabstractitemmodel | ||
qabstractproxymodel | ||
qconcatenatetablesproxymodel | ||
qidentityproxymodel | ||
qitemmodel | ||
qitemselectionmodel | ||
qsortfilterproxymodel_common | ||
qsortfilterproxymodel_recursive | ||
qsortfilterproxymodel_regularexpression | ||
qstringlistmodel | ||
qtransposeproxymodel | ||
CMakeLists.txt |