qt5base-lts/tests/auto/widgets
Thorbjørn Martsum f633bc7f7f QHeaderView - reduce memory usage
Though the worst case memory usage was improved in
b800d8b94a the best case usage changed.

Since best case is the same as worst case in Qt5, we should
use as little as possible, which this patch ensures.

We reduce the memory usage from 3 to 2 ints per section - which is
half of worst case in Qt4. There seems to be no bigger cost in
performance doing that. The recalcSectionStartPos is still very fast.

This patch limits the maximum section size to (2^20) ~ 1.000.000 pixels.

This alleviates
Task-number: QTBUG-32325

Change-Id: I9b7530030a31b4e35cf1ca9e32c6b936f5ea9790
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
2013-08-16 05:34:18 +02:00
..
dialogs Merge remote-tracking branch 'origin/stable' into dev 2013-06-27 13:06:38 +02:00
effects QtWidgets tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-28 02:02:14 +01:00
graphicsview Re-enable tests tst_qgraphicsproxywidget, tst_qgraphicswidget. 2013-07-24 22:16:58 +02:00
itemviews QHeaderView - reduce memory usage 2013-08-16 05:34:18 +02:00
kernel Merge branch 'stable' into dev 2013-07-11 16:42:01 +02:00
styles Test password mask delay and characters on Mac. 2013-07-11 10:56:49 +02:00
util Stabilize tst_qcompleter. 2013-04-05 11:28:47 +02:00
widgets Add useful signals to QTabBar and QTabWidget 2013-08-13 19:28:31 +02:00
widgets.pro