From c0d6b22a39f20bb4f6da9510acae704cf6be91a5 Mon Sep 17 00:00:00 2001 From: Anu Aliyas Date: Thu, 2 Nov 2023 17:02:29 +0100 Subject: [PATCH] Add a comment to highlight QSpontaneKeyEvent usage in QtWebEngine - QtWebEngine event handling requires forwarding events as spontaneous. - Impersonated QSpontaneKeyEvent in QtWebEngine to handle such cases. - Added comment to explain QSpontaneKeyEvent usage in QtWebEngine. Tasks: QTBUG-118398 Change-Id: I0ef951802727065bed660210e407a5a830956adf Reviewed-by: Volker Hilsheimer --- src/corelib/kernel/qcoreevent.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/corelib/kernel/qcoreevent.h b/src/corelib/kernel/qcoreevent.h index 5c52047122..a65dbee7da 100644 --- a/src/corelib/kernel/qcoreevent.h +++ b/src/corelib/kernel/qcoreevent.h @@ -354,6 +354,8 @@ private: friend class QApplication; friend class QGraphicsScenePrivate; // from QtTest: + // QtWebEngine event handling requires forwarding events as spontaneous. + // Impersonated QSpontaneKeyEvent in QtWebEngine to handle such cases. friend class QSpontaneKeyEvent; // needs this: Q_ALWAYS_INLINE