Fix text decoration width rounding
authorJiang Jiang <jiang.jiang@nokia.com>
Thu, 24 May 2012 13:40:16 +0000 (15:40 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 30 May 2012 14:34:25 +0000 (16:34 +0200)
commit5131aefc1f0c04936e3ef19c9870d884775471e5
tree8565120d7fbf24b60f14f99de94c4f0f59e623ae
parent60fb770fa779864015f728556857b1d70398fb74
Fix text decoration width rounding

width passed in qreal should be set with setWidthF instead of
setWidth, otherwise the fractional part is lost.

Also remove the raster paint engine hack that has been removed in
Qt 4.8, it's no longer needed.

This fixed the drawUnderline and drawRightToLeft auto tests in
tst_qglyphrun.

Change-Id: Iace46fc27ff156c07fb4d08a145269fad36e9fdb
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/gui/painting/qpainter.cpp
src/gui/text/qtextengine.cpp