Qt Base (Core, Gui, Widgets, Network, ...)
Go to file
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
bin
config.tests configure: Remove the -dwarf2 argument for Mac OS X builds 2012-05-11 12:52:21 +02:00
dist Remove const char *-based connectNotify() API 2012-05-15 04:57:37 +02:00
doc Doc: Add a default license footer. 2012-05-11 17:39:13 +02:00
examples Merge "Merge branch 'docs-refactoring' into master" into refs/staging/master 2012-05-10 11:34:25 +02:00
lib
mkspecs Add Visual Studio 11 mkspec 2012-05-16 13:34:20 +02:00
qmake Add Visual Studio 11 mkspec 2012-05-16 13:34:20 +02:00
src Fix cursorToX for right to left text with trailing whitespace. 2012-05-17 04:47:32 +02:00
tests Fix cursorToX for right to left text with trailing whitespace. 2012-05-17 04:47:32 +02:00
tools Add Visual Studio 11 mkspec 2012-05-16 13:34:20 +02:00
util QChar: add isSurrogate() and isNonCharacter() to the public API 2012-05-16 04:24:56 +02:00
.gitattributes
.gitignore
.tag
INSTALL
LGPL_EXCEPTION.txt
LICENSE.FDL
LICENSE.LGPL
LICENSE.PREVIEW.COMMERCIAL
configure configure: save pkg-config env in qconfig.pri 2012-05-14 21:23:43 +02:00
configure.bat
header.BSD
header.FDL
header.LGPL
header.LGPL-ONLY
qtbase.pro
sync.profile