qt5base-lts/tests/auto/gui
Christian Ehrlicher 4522b17159 QStandardItemModel: do not reset persisten index in setItem()
When an existing item is replaced with a new one in
QStandardItemModel::setItem() then the persitent index is invalidated
which leads to some unexpected behaviors (like e.g the header size and
resize mode are reset).
Therefore we have to make sure that the invalidation does not happen.
This can be achieved by delaying the call to QStandardItem::setModel()
for the old item until the new is properly added. After this, the old
item no longer gets a valid QModelIndex from the model and therefore
can't invalidate the persistent index anymore.

Fixes: QTBUG-13605
Fixes: QTBUG-73000
Fixes: QTBUG-80586
Change-Id: I4e45e6feb81b7287c0859f638d7ab1a576fc2f0f
Reviewed-by: David Faure <david.faure@kdab.com>
2019-12-14 08:46:05 +01:00
..
image Merge remote-tracking branch 'origin/5.14' into 5.15 2019-11-08 09:11:02 +01:00
itemmodels QStandardItemModel: do not reset persisten index in setItem() 2019-12-14 08:46:05 +01:00
kernel Merge remote-tracking branch 'origin/5.14' into 5.15 2019-12-04 01:00:07 +01:00
math3d Remove usages of deprecated APIs of qtbase/gui 2019-07-13 10:43:15 +02:00
painting Avoid initializing QFlags with 0 or nullptr in tests 2019-11-26 09:08:51 +01:00
qopengl unblacklist passing tests 2019-07-08 11:01:42 +00:00
qopenglconfig Deprecate conversion functions between QList and QSet 2019-05-07 14:15:44 +00:00
qvulkan Merge remote-tracking branch 'origin/5.10' into dev 2017-10-17 10:34:24 +02:00
rhi RHI: new native texture API 2019-12-05 10:04:46 +01:00
text Merge remote-tracking branch 'origin/5.14' into 5.15 2019-12-10 13:51:40 +02:00
util QDoubleValidator: Fix thousand separator handling 2019-12-05 11:30:24 +01:00
gui.pro Introduce the Qt graphics abstraction as private QtGui helpers 2019-06-13 10:13:45 +02:00