diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2022-09-23 19:43:18 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2022-10-23 09:28:45 +0200 |
commit | c3e2a624fbaa63979eecfc0b9346f4b54cb65264 (patch) | |
tree | f51ac4d8603f7e821f49203a5fe2fd8b11d203d7 /.lgtm.yml | |
parent | 55449a65285b704d53a0096689f156578d9cb0e2 (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