Use the layout change hint to speed up QItemSelectionModel.
authorStephen Kelly <stephen.kelly@kdab.com>
Thu, 27 Sep 2012 09:36:23 +0000 (11:36 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 22 Oct 2012 17:36:43 +0000 (19:36 +0200)
commitd18eb260d70b75376411fe3f69da82bf46fb503f
tree691ebaa77e301f0b3b52e894dbfd9e7085a292bd
parent0693082c95c1833f686accee74024db4eead3003
Use the layout change hint to speed up QItemSelectionModel.

The testcase in the bug report takes 370035 ms to sort the rows with
Qt 4, and 5646 ms in Qt 5 (when using the extra hints to layout*Changed).

That's an improvement of more than 98%.

Task-number: QTBUG-17732
Change-Id: If78f972d80c501e0cb39078228086c4f4ac8a65b
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
src/corelib/itemmodels/qitemselectionmodel.cpp
src/corelib/itemmodels/qitemselectionmodel.h
src/corelib/itemmodels/qitemselectionmodel_p.h