summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qcoreevent.h
diff options
context:
space:
mode:
authorAnu Aliyas <anu.aliyas@qt.io>2023-11-02 17:02:29 +0100
committerAnu Aliyas <anu.aliyas@qt.io>2023-12-20 18:45:21 +0100
commitc0d6b22a39f20bb4f6da9510acae704cf6be91a5 (patch)
treef6d960d03f6d8db65f8c6a89c3cc7295f72a9a3a /src/corelib/kernel/qcoreevent.h
parent2b9d021ba5487f7f5f67b958a17160c4cf468561 (diff)
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 <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/kernel/qcoreevent.h')
-rw-r--r--src/corelib/kernel/qcoreevent.h2
1 files changed, 2 insertions, 0 deletions
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