summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qfontengineglyphcache.cpp
diff options
context:
space:
mode:
authorTang Haixiang <tanghaixiang@uniontech.com>2021-10-27 18:59:33 +0800
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2022-09-05 16:29:11 +0000
commit8aae49019d7386c1abd6cd32f7ccb68c264c0288 (patch)
tree22d4580d294155ea1432b427d998f8be6ce85d76 /src/gui/text/qfontengineglyphcache.cpp
parentff92c4c3d817fd2b1e2de05523f8f4ceede4ac58 (diff)
QTextDocumentLayout: Account for topMargin when hit-testing
When TopMargin is set in TextBlock and the mouse click position is between Margin (the mouse is not on the textrect), the cursor will usually jump to the end. So topMargin should be considered when hitTest() calculates coordinates. Fixes: QTBUG-91774 Pick-to: 6.4 6.3 6.2 Change-Id: I231377263855b9cd7152684203fc4ed2e9299bb9 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Tang Haixiang <tanghaixiang@uniontech.com> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/gui/text/qfontengineglyphcache.cpp')
0 files changed, 0 insertions, 0 deletions