summaryrefslogtreecommitdiffstats
path: root/src/gui/image
diff options
context:
space:
mode:
authorZhang Hao <zhanghao@uniontech.com>2021-09-08 17:14:46 +0800
committerZhang Hao <zhanghao@uniontech.com>2021-09-18 00:55:36 +0000
commit33238ea2c63b372ee8795eaafbfc5a859a778f8d (patch)
tree0331c65ff9537493e5cfdf8b205250c606d642a6 /src/gui/image
parent1c6d6b7c0d7d7e8a96d1f7b2f259933910b2d481 (diff)
Fix QTextEdit cursor rectangle vertical positioning
When there are characters with different pointsize in QScriptLine, the value of si.descent is less than sl.descent, which will cause the y value of the cursor rectangle to be too large. If si.descent is less than sl.descent, the height of the cursor rectangle is equal to base plus si.descent. Amends e99a883bd382ca950192bd66cafb2a1de6394ce7 Fixes: QTBUG-96288 Done-with: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Pick-to: 6.1 6.2 Change-Id: I4a8566b32cfa75d8ca1a584f5e8e577c5c9caf0d Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/gui/image')
0 files changed, 0 insertions, 0 deletions