diff options
author | Miika Pernu <[email protected]> | 2025-06-17 15:36:35 +0900 |
---|---|---|
committer | Volker Hilsheimer <[email protected]> | 2025-06-20 11:44:06 +0000 |
commit | 882a4df4fdd2a5952a605ca783142f46d9a92d5b (patch) | |
tree | 99579244d42ff74f9067e6c821c7147c4f92e84d /examples/sql/sqlbrowser/browser.cpp | |
parent | 3183b7b79126551fe8528a6fbcf6e90830ee695a (diff) |
Adjust the draggedPosition calculation to changes in
QAbstractItemViewPrivate::offset(). The draggedPosition was previously
first calculated by adding mouse pos and offset() value, and mouse pos
was later extracted by subtracting the offset() from draggedPosition.
However, the offset() value no longer remains a constant between the
addition and subtraction, which makes it impossible to get the old
mouse position.
Store the offset and mouse position separately to make the
calculations deterministic across events.
Fixes: QTBUG-130978
Pick-to: 6.10 6.9 6.8 6.5
Change-Id: I5c601ff7ca40c9d8fb7ad949ff15520d199f5c1f
Reviewed-by: Volker Hilsheimer <[email protected]>
Diffstat (limited to 'examples/sql/sqlbrowser/browser.cpp')
0 files changed, 0 insertions, 0 deletions