summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qcoreevent.cpp
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2018-07-19 12:18:11 +0200
committerPaul Wicking <paul.wicking@qt.io>2018-07-19 13:05:01 +0000
commit8e40e390c61acc817689236cf9792195c2106fed (patch)
tree7fdc7538d4f59ead413f9be1d041f78f8a6caff7 /src/corelib/kernel/qcoreevent.cpp
parent8a5267e4d96438aa74672ca1bf25d187c6c45bd2 (diff)
Doc: Extend description of ShortcutOverride event
Better late than never. Task-number: QTBUG-533 Change-Id: Ieb68d510f75553a6aa0a6e9046c11e3a34b8815f Reviewed-by: Andy Shaw <andy.shaw@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/corelib/kernel/qcoreevent.cpp')
-rw-r--r--src/corelib/kernel/qcoreevent.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/corelib/kernel/qcoreevent.cpp b/src/corelib/kernel/qcoreevent.cpp
index 58ca8279ea..3d0a9dd05d 100644
--- a/src/corelib/kernel/qcoreevent.cpp
+++ b/src/corelib/kernel/qcoreevent.cpp
@@ -202,6 +202,12 @@ QT_BEGIN_NAMESPACE
\value Scroll The object needs to scroll to the supplied position (QScrollEvent).
\value Shortcut Key press in child for shortcut key handling (QShortcutEvent).
\value ShortcutOverride Key press in child, for overriding shortcut key handling (QKeyEvent).
+ When a shortcut is about to trigger, \c ShortcutOverride
+ is sent to the active window. This allows clients (e.g. widgets)
+ to signal that they will handle the shortcut themselves, by
+ accepting the event. If the shortcut override is accepted, the
+ event is delivered as a normal key press to the focus widget.
+ Otherwise, it triggers the shortcut action, if one exists.
\value Show Widget was shown on screen (QShowEvent).
\value ShowToParent A child widget has been shown.
\value SockAct Socket activated, used to implement QSocketNotifier.