summaryrefslogtreecommitdiffstats
path: root/src/imports/gestures/plugin.cpp
diff options
context:
space:
mode:
authorJiang Jiang <jiang.jiang@nokia.com>2010-08-10 13:58:25 (GMT)
committerJiang Jiang <jiang.jiang@nokia.com>2011-05-20 08:03:17 (GMT)
commit29a6523dd8d3fac9be198c73153691c6dcdb3b21 (patch)
tree6489df8a7e7567d328eed22aea73dc54216e60e7 /src/imports/gestures/plugin.cpp
parentc354bc1d567874dd58db6abecf9d5796dfd721be (diff)
downloadQt-29a6523dd8d3fac9be198c73153691c6dcdb3b21.zip
Qt-29a6523dd8d3fac9be198c73153691c6dcdb3b21.tar.gz
Qt-29a6523dd8d3fac9be198c73153691c6dcdb3b21.tar.bz2
Make selection work across ligatures
For widgets like QPlainTextEdit, selection across ligatures (typically 'fi', 'ffi', 'fl', etc.) end up highlighting the entire ligature glyphs, this patch fixed that by dividing width inside the ligature so that selection will not expand past the actual selected characters. Since cursor position already considered this, we merely adopted the algorithm and made it a separated helper function for all necessary cases. Dividing width directly looks like a temporary workaround but works well enough so far for cursor positions. Task-number: QTBUG-11969 Reviewed-by: Eskil (cherry picked from commit 99fd5825dfb4d50cff93165995701a65b7a8e4ed)
Diffstat (limited to 'src/imports/gestures/plugin.cpp')
0 files changed, 0 insertions, 0 deletions