summaryrefslogtreecommitdiffstats
path: root/.lgtm.yml
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2022-09-23 19:43:18 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2022-10-23 09:28:45 +0200
commitc3e2a624fbaa63979eecfc0b9346f4b54cb65264 (patch)
treef51ac4d8603f7e821f49203a5fe2fd8b11d203d7 /.lgtm.yml
parent55449a65285b704d53a0096689f156578d9cb0e2 (diff)
QApplication: send QHoverEvents with correct scenePosition()
The QHoverEvent ctor takes two points: pos and globalPos; pos is then passed as both the scene and global pos to the QSinglePointEvent ctor, which calls QMutableEventPoint::setScenePosition() on the persistent QEventPoint instance and then detaches befeore setting ephemeral state. Therefore, we must construct QHoverEvent with scene position first, not local position, so that the right value is persisted; it's better to set local position after the detach(), whereas it's too late to fix the persistent point then. Pick-to: 6.4 Fixes: QTBUG-106918 Change-Id: I45726a9ec05bba2fe0cde6f5fb87c269105caca6 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to '.lgtm.yml')
0 files changed, 0 insertions, 0 deletions