summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopenglprogrambinarycache.cpp
diff options
context:
space:
mode:
authorAxel Spoerl <axel.spoerl@qt.io>2024-09-24 08:18:47 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-09-26 05:01:16 +0000
commit6f48162478ec2dd62c9c51fec4148bf7e25fbc86 (patch)
treea0d4ee7bd19ae62340786e2183aa2182777c8607 /src/gui/opengl/qopenglprogrambinarycache.cpp
parentd39c9d37ade8d74e534952e47061168be8904fc7 (diff)
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 e4ef0f03e6f1fddc397980fd7fbf6f6b829f16d9. 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 e4ef0f03e6f1fddc397980fd7fbf6f6b829f16d9. Fixes: QTBUG-129258 Change-Id: Iff61b98b290f6483948007b5f12b19393759d9db Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 3fbae61ea245291cb4c34e9126562c307741a600) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit c20a382023dde5e2627f3b7ecfcd22e02afc26b4)
Diffstat (limited to 'src/gui/opengl/qopenglprogrambinarycache.cpp')
0 files changed, 0 insertions, 0 deletions