qt5base-lts/src/gui/text
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
..
qabstractfontengine_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qabstractfontengine_qws.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qabstractfontengine_qws.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qabstracttextdocumentlayout_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qabstracttextdocumentlayout.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qabstracttextdocumentlayout.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qcssparser_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qcssparser.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qcssscanner.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfont_mac.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfont_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfont_qpa.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfont_qws.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfont_s60.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfont_win.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfont_x11.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfont.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfont.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontdatabase_mac.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontdatabase_qpa.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontdatabase_qws.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontdatabase_s60.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontdatabase_win.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontdatabase_x11.cpp Fix compile for systems with old fontconfig 2011-05-27 15:41:25 +02:00
qfontdatabase.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontdatabase.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontengine_coretext_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontengine_coretext.mm Workaround a bug in Core Text to select Light fonts 2011-05-25 17:57:34 +02:00
qfontengine_ft_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontengine_ft.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontengine_mac_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontengine_mac.mm Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontengine_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontengine_qpa_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontengine_qpa.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontengine_qpf_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontengine_qpf.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontengine_qws.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontengine_s60_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontengine_s60.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontengine_win_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontengine_win.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontengine_x11_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontengine_x11.cpp Fix QFontEngineX11FT compilation 2011-05-25 16:08:03 +02:00
qfontengine.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontenginedirectwrite_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontenginedirectwrite.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontengineglyphcache_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontinfo.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontmetrics.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontmetrics.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontsubset_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfontsubset.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfragmentmap_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfragmentmap.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qglyphrun_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qglyphrun.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qglyphrun.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qpfutil.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qplatformfontdatabase_qpa.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qplatformfontdatabase_qpa.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qrawfont_ft.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qrawfont_mac.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qrawfont_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qrawfont_qpa.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qrawfont_win.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qrawfont.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qrawfont.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qstatictext_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qstatictext.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qstatictext.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qsyntaxhighlighter.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qsyntaxhighlighter.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextcontrol_p_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextcontrol_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextcontrol.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextcursor_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextcursor.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextcursor.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextdocument_p.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextdocument_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextdocument.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextdocument.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextdocumentfragment_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextdocumentfragment.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextdocumentfragment.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextdocumentlayout_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextdocumentlayout.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextdocumentwriter.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextdocumentwriter.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextengine_mac.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextengine_p.h Support placing cursor in ligature with mouse or touch 2011-05-30 15:16:34 +02:00
qtextengine.cpp Support placing cursor in ligature with mouse or touch 2011-05-30 15:16:34 +02:00
qtextformat_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextformat.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextformat.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtexthtmlparser_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtexthtmlparser.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextimagehandler_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextimagehandler.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextlayout.cpp Support placing cursor in ligature with mouse or touch 2011-05-30 15:16:34 +02:00
qtextlayout.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextlist.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextlist.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextobject_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextobject.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextobject.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextodfwriter_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextodfwriter.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextoption.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtextoption.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtexttable_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtexttable.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtexttable.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qzip.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qzipreader_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qzipwriter_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
text.pri Rename QGlyphs -> QGlyphRun 2011-05-10 12:20:13 +02:00