Struct qt_core::q_abstract_item_model::CheckIndexOption
source · pub struct CheckIndexOption(/* private fields */);
Expand description
This enum can be used to control the checks performed by QAbstractItemModel::checkIndex().
C++ enum: QAbstractItemModel::CheckIndexOption
.
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.
Implementations§
source§impl CheckIndexOption
impl CheckIndexOption
sourcepub const NoOption: CheckIndexOption = _
pub const NoOption: CheckIndexOption = _
No check options are specified. (C++ enum variant: NoOption = 0
)
sourcepub const IndexIsValid: CheckIndexOption = _
pub const IndexIsValid: CheckIndexOption = _
The model index passed to QAbstractItemModel::checkIndex() is checked to be a valid model index. (C++ enum variant: IndexIsValid = 1
)
sourcepub const DoNotUseParent: CheckIndexOption = _
pub const DoNotUseParent: CheckIndexOption = _
Does not perform any check involving the usage of the parent of the index passed to QAbstractItemModel::checkIndex(). (C++ enum variant: DoNotUseParent = 2
)
sourcepub const ParentIsInvalid: CheckIndexOption = _
pub const ParentIsInvalid: CheckIndexOption = _
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§
source§impl<T: Into<QFlags<CheckIndexOption>>> BitOr<T> for CheckIndexOption
impl<T: Into<QFlags<CheckIndexOption>>> BitOr<T> for CheckIndexOption
§type Output = QFlags<CheckIndexOption>
type Output = QFlags<CheckIndexOption>
|
operator.source§impl Clone for CheckIndexOption
impl Clone for CheckIndexOption
source§fn clone(&self) -> CheckIndexOption
fn clone(&self) -> CheckIndexOption
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CheckIndexOption
impl Debug for CheckIndexOption
source§impl From<CheckIndexOption> for QFlags<CheckIndexOption>
impl From<CheckIndexOption> for QFlags<CheckIndexOption>
source§fn from(value: CheckIndexOption) -> Self
fn from(value: CheckIndexOption) -> Self
source§impl From<CheckIndexOption> for c_int
impl From<CheckIndexOption> for c_int
source§fn from(value: CheckIndexOption) -> Self
fn from(value: CheckIndexOption) -> Self
source§impl From<i32> for CheckIndexOption
impl From<i32> for CheckIndexOption
source§impl PartialEq for CheckIndexOption
impl PartialEq for CheckIndexOption
source§fn eq(&self, other: &CheckIndexOption) -> bool
fn eq(&self, other: &CheckIndexOption) -> bool
self
and other
values to be equal, and is used
by ==
.