-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send events as spontaneous in QWindowPrivate::forwardToPopup()
QWindowPrivate::forwardToPopup() sends key events with QCoreApplication::sendEvent(), which sets QEvent::m_spont to false. That makes key and pointer events sent to popups appear synthetic, while they are sponaneous if sent to other widgets. The method has been newly implemented in the course of moving popup handling from QApplication to QGuiApplication. Make current behavior consistent to the behavior prior to e4ef0f0. Since events are always spontaneous, use QCoreApplication::sendSpontaneousEvent() instead. Add a test function to tst_QComboBox to Verify, that key events - are sent directly to the popup - not seen by the window - appear as spontaneous. This amends e4ef0f0. Fixes: QTBUG-129258 Change-Id: Iff61b98b290f6483948007b5f12b19393759d9db Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 3fbae61) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit c20a382)
- Loading branch information
Showing
3 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters