diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-06-07 09:40:12 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-06-14 13:01:52 +0000 |
commit | 2f9543c2ef71e3b5b686ce07e84fd4372ce0535f (patch) | |
tree | 8d989475a0864f3b729cfa7f243940b38ed26566 /tests/auto/widgets/itemviews/qheaderview | |
parent | b43ec7e9f9d043ee3b82a5207ac124d77ce5afca (diff) |
QAIV: Don't open editor on release when press closed editor
A mouse press that transfers focus from an open editor back to the view
will close the editor. To prevent that the corresponding release then
opens the same editor again we need to know that the closeEditor call
was caused by the mouse press. Since Qt first generates the focusOut
event, and then delivers the mouse press, we have to start a zero-timer
to check whether we are in the same event delivery process. If so, ignore
the corresponding release.
Add test case that simulates that chain of events.
Fixes: QTBUG-20456
Pick-to: 6.2 6.1
Change-Id: I28fa32bfbc776db207c594c329961f575ae58ea9
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'tests/auto/widgets/itemviews/qheaderview')
0 files changed, 0 insertions, 0 deletions