summaryrefslogtreecommitdiffstats
path: root/examples/painting/fontsampler/main.cpp
diff options
context:
space:
mode:
authorDavid Faure <david.faure@kdab.com>2022-04-29 11:29:19 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2022-05-16 22:34:06 +0000
commit42cf2a2617ffd0d563fcd46c5aa5409007e211de (patch)
tree4d31f0ded9f53c243521652b2d41067eadedfc7b /examples/painting/fontsampler/main.cpp
parent367092d7e02bfe0054b78e856b7addbdb56aae2e (diff)
QWidgetTextControl: don't clear() a new empty documentHEADdev
Before: 0.063 msecs per iteration After: 0.054 msecs per iteration clear() takes time because: 1) QTextDocumentLayout::documentChanged() => doLayout() => layoutFrame() 2) QTextDocumentPrivate::init() => insertBlock() => finishEdit() => QTextDocumentLayout::documentChanged() => layoutStep() => ... => doLayout() again Pick-to: 6.3 6.2 Change-Id: I7a13164d06a1ed77226f2b9d7d12e69ce5b31dfe Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'examples/painting/fontsampler/main.cpp')
0 files changed, 0 insertions, 0 deletions