qt5base-lts/tests/auto/gui/text
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
..
qabstracttextdocumentlayout Protect QAbstractTextDocumentLayout::anchorAt() from preedit 2012-03-27 23:03:12 +02:00
qcssparser Support specifying fallbacks in font request on QPA 2012-05-16 04:24:58 +02:00
qfont Don't hardcode the default families in qfont_qpa.cpp 2012-04-10 12:49:34 +02:00
qfontdatabase Re-enable QFontDatabase test on Mac OS X. 2012-04-19 08:06:52 +02:00
qfontmetrics Wrap all Latin 1 strings with QString::fromLatin1 or QLatin1Strings 2012-04-27 22:52:01 +02:00
qglyphrun enable the text layout's cache where it is seems to be missed 2012-05-16 19:38:01 +02:00
qrawfont enable the text layout's cache where it is seems to be missed 2012-05-16 19:38:01 +02:00
qstatictext Remove insignification of QStaticText test on Mac OS X. 2012-04-19 08:07:13 +02:00
qsyntaxhighlighter Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qtextblock Clean up some auto tests of gui 2012-03-12 13:14:05 +01:00
qtextcursor Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qtextdocument Change remaining uses of {to,from}Ascii to {to,from}Latin1 [QtGui] 2012-05-04 12:45:52 +02:00
qtextdocumentfragment Change remaining uses of {to,from}Ascii to {to,from}Latin1 [QtGui] 2012-05-04 12:45:52 +02:00
qtextdocumentlayout Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qtextformat Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qtextlayout Fix cursorToX for right to left text with trailing whitespace. 2012-05-17 04:47:32 +02:00
qtextlist Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qtextobject Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qtextodfwriter Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qtextpiecetable Clean up some auto tests of gui 2012-03-12 13:14:05 +01:00
qtextscriptengine enable the text layout's cache where it is seems to be missed 2012-05-16 19:38:01 +02:00
qtexttable Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qzip Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
text.pro Start running some disabled tests again on Mac OS. 2012-04-23 09:46:22 +02:00