Commit 3095493a authored by Andrew den Exter's avatar Andrew den Exter Committed by Qt by Nokia
Browse files

Reduce the number of unnecessary layouts on geometry changes.


Improve checks for geometry changes that don't affect layout, i.e
width increasing when the previous layout didn't wrap or elide.

Set implicit sizes just once during layout rather than setting the
implicit width during and the implicit height after to limit the when
an implicit size change can change geometry.

And if there are multiple layouts of the same text/font combination
re-use cached layout data as much as possible by guarding against
unnecessary property changes on the layout, and not creating a new
layout for calculating the implicit size of truncated text.

Change-Id: Ia05e52e9170e1f5d3364896ab119e00d8a318299
Reviewed-by: default avatarMichael Brasser <michael.brasser@nokia.com>
parent d65b660d
Showing with 505 additions and 139 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment