Backport adjusting cursorToX for trailing spaces from Qt 5
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Tue, 11 Dec 2012 13:33:04 +0000 (14:33 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 19 Dec 2012 12:28:14 +0000 (13:28 +0100)
commit99288633373ecc8ba808cf0ecf18f4a81d62ac84
treedd54685ab5724c9db57bf08326e230bb02de1e4d
parent0deddff9c8ca7e1a1e9288a09bc015fd7ea0fd03
Backport adjusting cursorToX for trailing spaces from Qt 5

This is a backport of d07982b104de5dc2b54bef09c071500ce22cf539
from Qt 5 which fixes cursorToX() in some cases, e.g. when
a line filled with spaces is ended by a soft line break.

Task-number: QTBUG-27354
Change-Id: Ia88873aeb3c0620044fefe24fc6bb1310e3aa339
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Andrew den Exter <andrew.den.exter@qinetic.com.au>
src/gui/text/qtextengine.cpp
src/gui/text/qtextlayout.cpp
tests/auto/qtextlayout/tst_qtextlayout.cpp