summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms
diff options
context:
space:
mode:
authorAndreas Buhr <andreas.buhr@qt.io>2021-04-30 09:07:06 +0200
committerAndreas Buhr <andreas.buhr@qt.io>2021-05-18 08:49:56 +0200
commit8278879c199ecc9b17a1fd603ecb4a31f5fd6c68 (patch)
tree164bd1f169ccb404fe174d656814934773d613f4 /src/plugins/platforms
parent0ed6fd77a0658414f2c8d104939e7de68477a80c (diff)
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>
Diffstat (limited to 'src/plugins/platforms')
0 files changed, 0 insertions, 0 deletions