Improve QTreeView performance.