pub struct ShortcutContext(/* private fields */);
Expand description
For a QEvent::Shortcut event to occur, the shortcut's key sequence must be entered by the user in a context where the shortcut is active. The possible contexts are these:
C++ enum: Qt::ShortcutContext
.
For a QEvent::Shortcut event to occur, the shortcut’s key sequence must be entered by the user in a context where the shortcut is active. The possible contexts are these:
Implementations§
Source§impl ShortcutContext
impl ShortcutContext
Sourcepub const WidgetShortcut: ShortcutContext
pub const WidgetShortcut: ShortcutContext
The shortcut is active when its parent widget has focus. (C++ enum variant: WidgetShortcut = 0
)
Sourcepub const WindowShortcut: ShortcutContext
pub const WindowShortcut: ShortcutContext
The shortcut is active when its parent widget is a logical subwidget of the active top-level window. (C++ enum variant: WindowShortcut = 1
)
Sourcepub const ApplicationShortcut: ShortcutContext
pub const ApplicationShortcut: ShortcutContext
The shortcut is active when one of the applications windows are active. (C++ enum variant: ApplicationShortcut = 2
)
Sourcepub const WidgetWithChildrenShortcut: ShortcutContext
pub const WidgetWithChildrenShortcut: ShortcutContext
The shortcut is active when its parent widget, or any of its children has focus. Children which are top-level widgets, except pop-ups, are not affected by this shortcut context. (C++ enum variant: WidgetWithChildrenShortcut = 3
)
Trait Implementations§
Source§impl Clone for ShortcutContext
impl Clone for ShortcutContext
Source§fn clone(&self) -> ShortcutContext
fn clone(&self) -> ShortcutContext
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more