qt5base-lts/tests/auto/qtextlayout
Jiang Jiang 9f837af945 Support placing cursor in ligature with mouse or touch
We need to find out the closest element in the ligature to
the point we clicked (or tapped), currently we do this by
dividing the width of that ligature glyph evenly by the number
of characters it covered. We only support Common and Greek script
at this point, ligatures in other scripts are still handled as a
whole.

Task-number: QTBUG-19260
Reviewed-by: Eskil
(cherry picked from commit 5338d78aa9d80ddd2bcb21e6b22cd2cf1522a7d3)

Change-Id: Ic747e9458d561aca0848dcd1e8b94e0a23fd8189
Reviewed-on: http://codereview.qt.nokia.com/196
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
2011-05-30 15:16:34 +02:00
..
.gitignore Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qtextlayout.pro Compile auto tests. 2011-05-16 16:59:05 +02:00
tst_qtextlayout.cpp Support placing cursor in ligature with mouse or touch 2011-05-30 15:16:34 +02:00