Fix QPainter::drawGlyphs() with non-affine transformation
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Fri, 6 May 2011 08:25:20 +0000 (10:25 +0200)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Fri, 6 May 2011 08:44:49 +0000 (10:44 +0200)
commit80a230e221402e77c1ece2f1d37e4fe5755d26db
treefa8da7fe8114af97b5118c32d412217f11a7e774
parent69c4b97be2df727a3cdd3b6f70ab6e39f37d0052
Fix QPainter::drawGlyphs() with non-affine transformation

When the matrix has an non-affine transformation, the text will have to
be rendered using the default path-renderer. This means going through
the drawTextItem() path (since drawStaticText() has no support for those
transformations) and it also means not pre-transforming the coordinates,
since the default implementation of drawTextItem() supports
transformations.

Task-number: QTBUG-18214
Reviewed-by: Jiang Jiang
(cherry picked from commit 55446d104db77fc7994ab12352b1c08bb7b63346)
src/gui/painting/qpainter.cpp