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

Speed up Text construction with RichText


Setting the page size to empty can short cut some unnecessary layouts
triggered by QTextDocument/QTextDocumentLayout prior to the Text item
requiring a layout.

This rougly halves the construction time a Text item with RichText.

Task-number: QTBUG-19728
Change-Id: I03e6d293d8e5ac40046aef41171ca5009b718546
Reviewed-by: default avatarMartin Jones <martin.jones@nokia.com>
parent 4598939e
No related merge requests found
Showing with 1 addition and 0 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