qt5base-lts/tests/auto/corelib/itemmodels
Stephen Kelly 2ef3ac72fc Emit layoutChange signals when changing QPersistentModelIndexes.
This is necessary whenever QPersistentModelIndexes are changed. Omitting
it means that views are not able to react to the change, such as QTreeView
clearing its (manually held) QModelIndex cache, and the QItemSelectionModel
clearing the item from its storage.

It is necessary to change a QSortFilterProxyModel test which assumed setItem
does not have any such effect. That test is ported to setData instead.

Task-number: QTBUG-18539
Change-Id: Id7a602f18b9773ba4d11019418de886860d26d3e
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
2012-08-18 08:34:53 +02:00
..
qabstractitemmodel Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qabstractproxymodel Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qidentityproxymodel Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qitemmodel Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qitemselectionmodel Make rowIntersectsSelection take account of the parent argument. 2012-08-10 22:02:11 +02:00
qsortfilterproxymodel Emit layoutChange signals when changing QPersistentModelIndexes. 2012-08-18 08:34:53 +02:00
qstringlistmodel Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
itemmodels.pro Make itemmodels autotest build without widgets 2012-06-07 00:38:44 +02:00