qt6-bb10/tests/auto/gui/text/qtextdocument
David Faure 09c7457f4a QTextDocument: add setLayoutEnabled()
This allows to set up everything first - without paying for the layout
calculation at every step - and only then trigger the layout once.

Results:
 0.065 msecs to create a QGraphicsTextItem with some text (layouted)
 0.036 msecs to set everything up in a QGraphicsTextItem with 0 width

Change-Id: I138bd1d58941d029bc0a36d2730216778f1fbd97
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2022-05-26 16:58:42 +02:00
..
.gitignore
CMakeLists.txt CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
common.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
test.css
tst_qtextdocument.cpp QTextDocument: add setLayoutEnabled() 2022-05-26 16:58:42 +02:00