Struct qt_core::ShortcutContext
source · 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 moresource§impl Debug for ShortcutContext
impl Debug for ShortcutContext
source§impl From<ShortcutContext> for c_int
impl From<ShortcutContext> for c_int
source§fn from(value: ShortcutContext) -> Self
fn from(value: ShortcutContext) -> Self
source§impl From<i32> for ShortcutContext
impl From<i32> for ShortcutContext
source§impl PartialEq for ShortcutContext
impl PartialEq for ShortcutContext
source§fn eq(&self, other: &ShortcutContext) -> bool
fn eq(&self, other: &ShortcutContext) -> bool
self
and other
values to be equal, and is used
by ==
.