Go to file
Thorbjørn Lund Martsum a4e4c31007 QHeaderview - many sections removed performance boost.
When the QHeaderView model rowCount is decreased then the headerview
needs to remove some sections.

If e.g swapSections had occured then qheaderview before this patch did
a very slow removal by removing one section at a time and for each section
it restored visual and logical indexes.

By temporarily storing the logical index on the section we
can reduce the execution time of this a lot. The old code is only
faster when we remove one index (and is kept for that situation)

There is a complexity in difference (and many factors in our
qheaderview benchmark (the trunc part))

Change-Id: If45eab17fbca3364d458b004980570b5d013e4bd
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
2012-02-21 12:51:46 +01:00
bin Ensure the directory exists to receive a deprecated header. 2012-02-20 13:25:46 +01:00
config.tests Clean up default arch setting on Mac OS X 2012-02-17 11:44:29 +01:00
dist Remove qMacVersion() 2012-02-21 12:48:04 +01:00
doc/src Remove QAccessibleInterface::navigate() 2012-02-20 11:46:16 +01:00
examples Fortune client example - list all IP addresses 2012-02-17 11:44:29 +01:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs Make sure that we pick up xcb from pkg-config 2012-02-20 15:17:08 +01:00
qmake Implement QMAKE_SUBSTITUTES.config = verbatim. 2012-02-11 13:30:31 +01:00
src QHeaderview - many sections removed performance boost. 2012-02-21 12:51:46 +01:00
tests Remove qMacVersion() 2012-02-21 12:48:04 +01:00
tools don't attempt to build host tools which are gone from qtbase 2012-02-20 19:51:41 +01:00
util Avoid non-standard indentation of license headers. 2012-01-30 16:40:10 +01:00
.gitattributes Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
.gitignore Import QMimeType / QMimeDatabase into QtCore. 2012-02-18 22:19:43 +01:00
.tag Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
configure Make sure that we pick up xcb from pkg-config 2012-02-20 15:17:08 +01:00
configure.bat bootstrap configure.exe on windows 2012-02-16 01:56:21 +01:00
header.BSD Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.FDL Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.LGPL Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
header.LGPL-ONLY Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
INSTALL Remove Symbian specific code from qtbase. 2012-01-31 07:08:31 +01:00
LGPL_EXCEPTION.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.LGPL Update contact information in license headers. 2012-01-23 04:04:33 +01:00
LICENSE.PREVIEW.COMMERCIAL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qtbase.pro Add configure, sync.profile, and header.* to OTHER_FILES in qtbase.pro 2012-02-08 07:40:03 +01:00
sync.profile Add qprocessordetection.h 2012-02-08 12:33:11 +01:00