qt5base-lts/tests/auto/gui
Andrew den Exter d07982b104 Fix cursorToX for right to left text with trailing whitespace.
QTextLine::cursorToX returned the line width for cursor positions
outside the width of a wrapped right to left line because the
leading space width was always calculated as 0.

Returning a non-zero width for the leading space does cause
problems for other uses of QTextEngine::alignLine() though
as the textAdvance already doesn't include the leading/trailing
space so subtracting it there double accounts for it.

Task-number: QTBUG-24801

Change-Id: I56cbb139814c32813bebb49de8c045b29154a958
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
2012-05-17 04:47:32 +02:00
..
image QJpegHandler: add an embedded text support 2012-05-16 04:24:50 +02:00
kernel Windows: Compress Window Activation events. 2012-05-11 15:11:20 +02:00
math3d Don't use obsolete qVariantValue, qVariantCanConvert, etc. 2012-05-02 08:30:59 +02:00
painting Fix MSVC warnings in tests. 2012-04-02 16:56:48 +02:00
qopengl Remove insignification from tst_QOpenGL 2012-05-04 12:50:15 +02:00
text Fix cursorToX for right to left text with trailing whitespace. 2012-05-17 04:47:32 +02:00
util Restore Qt4 compat in QDesktopServices::DataLocation 2012-03-24 19:07:22 +01:00
gui.pro Moved tests into gui/kernel/ and gui/qopengl/ 2011-11-04 20:48:19 +01:00