aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tests.pro
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2012-07-05 10:18:43 +1000
committerQt by Nokia <qt-info@nokia.com>2012-07-09 09:05:32 +0200
commit4598939ee2fad1238609ca43717199fd4e98c75f (patch)
tree9ffdcf451ad585f14b1eda8050e48d3298dec7f2 /tests/tests.pro
parent19c0a31319148d4ac716f7cb3295891b5a3b20d9 (diff)
Speed up TextEdit construction time.
Defer setting content on the QTextDocument until componentComplete() to avoid unnecessary layouts and move one time setup for the text document from setContent to the constructor. Reduces the construction time of a TextEdit with RichText textFormat by about a third. Change-Id: Idde0772063bf769cde984efddd68589c55a7431a Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'tests/tests.pro')
0 files changed, 0 insertions, 0 deletions