diff options
author | Thorbjørn Martsum <tmartsum@gmail.com> | 2013-03-09 21:15:28 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-09 06:44:54 +0200 |
commit | 03c5eacfbb7f8fa294368bff812428680a0b9f3b (patch) | |
tree | bc1f99e57d56a46798500b44af6fe44b4055f358 /tests/benchmarks/sql | |
parent | 929e08a3d6bbc4ea16be69b732a3df5191e66474 (diff) |
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>
Diffstat (limited to 'tests/benchmarks/sql')
0 files changed, 0 insertions, 0 deletions