qt5base-lts/tests/auto/gui/text/qtextlayout
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
..
.gitignore Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
qtextlayout.pro Start running some disabled tests again on Mac OS. 2012-04-23 09:46:22 +02:00
tst_qtextlayout.cpp Fix cursorToX for right to left text with trailing whitespace. 2012-05-17 04:47:32 +02:00