qt6-bb10/tests/auto/widgets
Qiang Li f140ef04a0 Fix the crashes when animated QTreeWidgetItems are hidden
QTreeView's drawTree implementation performs lazy layouting
when calling itemDecorationAt. If animations are enabled,
this can change the list of items, and invalidate the copy
made earlier.

Don't copy the list of items, use a reference instead so that
code iterating over the items later operates on valid data.

Add an assert in the private itemHeight method, it must not
be called with an index that is out of bounds.

Fixes: QTBUG-42469
Pick-to: 6.0 6.1 5.15
Change-Id: Ifdb782881447912e00baffd1c407de10a1d8d0d4
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2021-03-08 12:31:13 +00:00
..
dialogs Windows: Fix dialog moving up after closing/reshowing 2021-01-15 18:05:19 +01:00
effects Remove the qmake project files 2021-01-07 15:32:28 +01:00
graphicsview Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
itemviews Fix the crashes when animated QTreeWidgetItems are hidden 2021-03-08 12:31:13 +00:00
kernel tst_qapplication: Prevent desktopaware test from deactivating main test 2021-02-15 14:20:08 +01:00
styles Set the PlaceholderText color in the palette from the stylesheet as well 2021-01-12 20:24:28 +01:00
util Remove the qmake project files 2021-01-07 15:32:28 +01:00
widgets QMenu test: turn tooltip animations off 2021-03-04 22:49:47 +01:00
CMakeLists.txt Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00