diff options
author | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2010-03-10 15:53:06 (GMT) |
---|---|---|
committer | Samuli Piippo <samuli.piippo@digia.com> | 2011-06-09 10:05:10 (GMT) |
commit | 34147cb46ecaae467673a35cb5b7f5fdd89597f5 (patch) | |
tree | 8d9de5fc0faddbc0d9b421b2e50f3aaa7d1a33db /src/svg | |
parent | 975634af52f1bfd18c4320744d65a40810ad36a3 (diff) | |
download | Qt-34147cb46ecaae467673a35cb5b7f5fdd89597f5.zip Qt-34147cb46ecaae467673a35cb5b7f5fdd89597f5.tar.gz Qt-34147cb46ecaae467673a35cb5b7f5fdd89597f5.tar.bz2 |
Slow QTreeView::layout() with many (> 10000) children
When updating the QTreeViewItem::total field in layout(), we used to
call QTreeViewPrivate::viewIndex() to get the parent item, which is
O(n). We have now introduced 'parentItem' in QTreeViewItem wich makes
this O(1), with a small penality when inserting and removing elements
in QTreeViewPrivate::viewItems.
The QTreeViewPrivate::checkViewItems() is left inside the code for
further debugging.
Reviewed-by: Olivier
Task-number: QTBUG-8885
(cherry picked from commit 7baaea978200c82fdf65e3934cfa373edeca6524)
Diffstat (limited to 'src/svg')
0 files changed, 0 insertions, 0 deletions