[−][src]Struct qt_core::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:
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:
Methods
impl ShortcutContext
[src]
impl ShortcutContext
[src]
pub const WidgetShortcut: ShortcutContext
[src]
The shortcut is active when its parent widget has focus. (C++ enum variant: WidgetShortcut = 0
)
pub const WindowShortcut: ShortcutContext
[src]
The shortcut is active when its parent widget is a logical subwidget of the active top-level window. (C++ enum variant: WindowShortcut = 1
)
pub const ApplicationShortcut: ShortcutContext
[src]
The shortcut is active when one of the applications windows are active. (C++ enum variant: ApplicationShortcut = 2
)
pub const WidgetWithChildrenShortcut: ShortcutContext
[src]
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
impl Clone for ShortcutContext
[src]
fn clone(&self) -> ShortcutContext
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ShortcutContext
[src]
impl Debug for ShortcutContext
[src]
impl Eq for ShortcutContext
[src]
impl From<ShortcutContext> for c_int
[src]
fn from(value: ShortcutContext) -> Self
[src]
impl From<i32> for ShortcutContext
[src]
impl PartialEq<ShortcutContext> for ShortcutContext
[src]
fn eq(&self, other: &ShortcutContext) -> bool
[src]
fn ne(&self, other: &ShortcutContext) -> bool
[src]
impl StructuralEq for ShortcutContext
[src]
impl StructuralPartialEq for ShortcutContext
[src]
Auto Trait Implementations
impl RefUnwindSafe for ShortcutContext
impl Send for ShortcutContext
impl Sync for ShortcutContext
impl Unpin for ShortcutContext
impl UnwindSafe for ShortcutContext
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,