diff options
| author | Xu Shitong <xushitong@uniontech.com> | 2025-03-14 17:01:33 +0800 |
|---|---|---|
| committer | Xu Shitong <xushitong@uniontech.com> | 2025-04-14 16:41:41 +0000 |
| commit | be2729cd7cfad3f3570bca64253bdfb50b3fb997 (patch) | |
| tree | 10659d9375aa7ab8c7a08d9f76ee789d2cf1b031 /tests/auto/sql/kernel/qsqldatabase/tst_qsqldatabase.cpp | |
| parent | 3265f409394e821605cfd1888a26f7fbdd4ba682 (diff) | |
QGuiApplication: Prevent double-click recognition across different windows
Two consecutive clicks on different windows should not be recognized as
a double-click event. Add window tracking to ensure double-clicks are
only detected when they occur within the same window.
Changes:
- Add static QWindow tracking for last pressed window
- Add window equality check in double-click detection logic
- Update window tracking after each mouse press event
- Add test auto test case
Fixes: QTBUG-134721
Change-Id: I0ca8460a447ca27b04f3d545176d478c90f6b830
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests/auto/sql/kernel/qsqldatabase/tst_qsqldatabase.cpp')
0 files changed, 0 insertions, 0 deletions
