summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorQiang Li <[email protected]>2021-03-03 19:26:27 +0800
committerVolker Hilsheimer <[email protected]>2021-03-08 12:31:13 +0000
commitf140ef04a0c54c2c8a699db33433b8d7235d137c (patch)
tree4f5600dcd9d9e9a5500e6cfe6576cd0b8830a177 /libexec
parent6e899f8e8c58e4ff980a8106c72ad522b5a7dc10 (diff)
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 <[email protected]>
Diffstat (limited to 'libexec')
0 files changed, 0 insertions, 0 deletions