qt5base-lts/tests/auto/widgets/itemviews
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
..
qabstractitemview Remove the qmake project files 2021-01-07 15:32:28 +01:00
qcolumnview Remove the qmake project files 2021-01-07 15:32:28 +01:00
qdatawidgetmapper Remove the qmake project files 2021-01-07 15:32:28 +01:00
qfileiconprovider Verify that QFileIconProvider returns valid pixmaps 2021-02-23 15:34:05 +01:00
qheaderview Remove the qmake project files 2021-01-07 15:32:28 +01:00
qitemdelegate Remove the qmake project files 2021-01-07 15:32:28 +01:00
qitemeditorfactory Remove the qmake project files 2021-01-07 15:32:28 +01:00
qitemview Remove the qmake project files 2021-01-07 15:32:28 +01:00
qlistview Stabilize tst_QListView::internalDragDropMove() on X11 2021-01-27 14:00:57 +00:00
qlistwidget Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtableview Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtablewidget Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtreeview Fix the crashes when animated QTreeWidgetItems are hidden 2021-03-08 12:31:13 +00:00
qtreewidget Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtreewidgetitemiterator Remove the qmake project files 2021-01-07 15:32:28 +01:00
CMakeLists.txt CMake: Regenerate subdir test projects 2020-07-09 09:38:39 +02:00