summaryrefslogtreecommitdiffstats
path: root/src/svg
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2010-03-10 15:53:06 (GMT)
committerSamuli Piippo <samuli.piippo@digia.com>2011-06-09 10:05:10 (GMT)
commit34147cb46ecaae467673a35cb5b7f5fdd89597f5 (patch)
tree8d9de5fc0faddbc0d9b421b2e50f3aaa7d1a33db /src/svg
parent975634af52f1bfd18c4320744d65a40810ad36a3 (diff)
downloadQt-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