summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/sqldatabase/sqldatabase.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>2010-08-10 14:09:10 (GMT)
commit99fd5825dfb4d50cff93165995701a65b7a8e4ed (patch)
tree7d2f019ae010e304d400a04da2d604ef3daaeec2 /doc/src/snippets/sqldatabase/sqldatabase.cpp
parentdd2a5c1556cf29fac03ae789dd5c43f482011d68 (diff)
downloadQt-99fd5825dfb4d50cff93165995701a65b7a8e4ed.zip
Qt-99fd5825dfb4d50cff93165995701a65b7a8e4ed.tar.gz
Qt-99fd5825dfb4d50cff93165995701a65b7a8e4ed.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
Diffstat (limited to 'doc/src/snippets/sqldatabase/sqldatabase.cpp')
0 files changed, 0 insertions, 0 deletions