qt5base-lts/tests/benchmarks/gui
Thorbjørn Martsum 03c5eacfbb resizeToContents - QTableView - faster hint when view is hidden
In some situations we can get into resizeSections in a hidden
QHeaderView. If the headerView is hidden then we look at all the
rows, and that can be extemely expensive for a large model.

This patch limits the sizeHint with only looking at a maximum
1000 rows. Though this is more inaccurate it is also faster -
and it is not much different from what QTreeView does.

Change-Id: Ief4b54c5a3c5a0db02e8b595c9b9b3162633ee67
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
2013-05-09 06:44:54 +02:00
..
animation Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
graphicsview Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
image Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
itemviews resizeToContents - QTableView - faster hint when view is hidden 2013-05-09 06:44:54 +02:00
kernel Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
math3d Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
painting Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
styles Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
text Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
gui.pro add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00