[][src]Struct qt_core::q_abstract_item_model::CheckIndexOption

#[repr(transparent)]
pub struct CheckIndexOption(_);

This enum can be used to control the checks performed by QAbstractItemModel::checkIndex().

C++ enum: QAbstractItemModel::CheckIndexOption.

C++ documentation:

This enum can be used to control the checks performed by QAbstractItemModel::checkIndex().

This enum was introduced or modified in Qt 5.11.

The CheckIndexOptions type is a typedef for QFlags<CheckIndexOption>. It stores an OR combination of CheckIndexOption values.

Methods

impl CheckIndexOption[src]

pub fn to_int(&self) -> c_int[src]

impl CheckIndexOption[src]

pub const NoOption: CheckIndexOption[src]

No check options are specified. (C++ enum variant: NoOption = 0)

pub const IndexIsValid: CheckIndexOption[src]

The model index passed to QAbstractItemModel::checkIndex() is checked to be a valid model index. (C++ enum variant: IndexIsValid = 1)

pub const DoNotUseParent: CheckIndexOption[src]

Does not perform any check involving the usage of the parent of the index passed to QAbstractItemModel::checkIndex(). (C++ enum variant: DoNotUseParent = 2)

pub const ParentIsInvalid: CheckIndexOption[src]

The parent of the model index passed to QAbstractItemModel::checkIndex() is checked to be an invalid model index. If both this option and DoNotUseParent are specified, then this option is ignored. (C++ enum variant: ParentIsInvalid = 4)

Trait Implementations

impl<T: Into<QFlags<CheckIndexOption>>> BitOr<T> for CheckIndexOption[src]

type Output = QFlags<CheckIndexOption>

The resulting type after applying the | operator.

impl Clone for CheckIndexOption[src]

impl Copy for CheckIndexOption[src]

impl Debug for CheckIndexOption[src]

impl Eq for CheckIndexOption[src]

impl From<CheckIndexOption> for c_int[src]

impl From<CheckIndexOption> for QFlags<CheckIndexOption>[src]

impl From<i32> for CheckIndexOption[src]

impl PartialEq<CheckIndexOption> for CheckIndexOption[src]

impl StructuralEq for CheckIndexOption[src]

impl StructuralPartialEq for CheckIndexOption[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.