qskinny icon indicating copy to clipboard operation
qskinny copied to clipboard

Sorting itemsToPolish in top down order

Open uwerat opened this issue 7 years ago • 0 comments

QQuickWindow calls QQuickItem::updatePolish in order of when QQuickItem::polish has been called ( = more or less random ). As one of the main ideas behind polishing is to calculate layouts, calling updatePolish in top down order is way more efficient.

To be able to reorder the QQuickWindowPrivate::itemsToPolish vector in O(n log n) QskControl needs to maintain its depth inside the QuickItem tree. Something that needs to be done on QQuickItem::ItemParentHasChanged - similar to what is already done for the locale.

uwerat avatar Jul 22 '17 12:07 uwerat