enable the text layout's cache where it is seems to be missed
authorKonstantin Ritt <ritt.ks@gmail.com>
Tue, 15 May 2012 17:02:53 +0000 (20:02 +0300)
committerQt by Nokia <qt-info@nokia.com>
Wed, 16 May 2012 17:38:01 +0000 (19:38 +0200)
commit279562172d2e998e910d82599255cb04b54df823
tree39d459e9e6f97a80a156b1efbfb9956dfac1b137
parent6eae3e1da3ebaf8023f85c62f2fdd177fa39e208
enable the text layout's cache where it is seems to be missed

e.g. in QStaticText, the data is used just to get the line's y-position
and re-calculates just after the loop to determine the bounding rect and to draw the text;

in QWidgetLineControl, the data re-calculated over and over while the result
is seems to remain the same; probably the caching is needed here too

Change-Id: I0f7eb291532f63eccb9c5f749daebb73ff90632f
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
src/gui/doc/snippets/code/src_gui_text_qtextlayout.cpp
src/gui/text/qstatictext.cpp
src/widgets/widgets/qwidgetlinecontrol.cpp
tests/auto/gui/text/qglyphrun/tst_qglyphrun.cpp
tests/auto/gui/text/qrawfont/tst_qrawfont.cpp
tests/auto/gui/text/qtextlayout/tst_qtextlayout.cpp
tests/auto/gui/text/qtextscriptengine/tst_qtextscriptengine.cpp
tests/auto/other/qcomplextext/tst_qcomplextext.cpp