Struct qt_core::q_item_selection_model::SelectionFlag
source · pub struct SelectionFlag(/* private fields */);
Expand description
This enum describes the way the selection model will be updated.
C++ enum: QItemSelectionModel::SelectionFlag
.
This enum describes the way the selection model will be updated.
The SelectionFlags type is a typedef for QFlags<SelectionFlag>. It stores an OR combination of SelectionFlag values.
Implementations§
source§impl SelectionFlag
impl SelectionFlag
sourcepub const NoUpdate: SelectionFlag = _
pub const NoUpdate: SelectionFlag = _
No selection will be made. (C++ enum variant: NoUpdate = 0
)
sourcepub const Clear: SelectionFlag = _
pub const Clear: SelectionFlag = _
The complete selection will be cleared. (C++ enum variant: Clear = 1
)
sourcepub const Select: SelectionFlag = _
pub const Select: SelectionFlag = _
All specified indexes will be selected. (C++ enum variant: Select = 2
)
sourcepub const Deselect: SelectionFlag = _
pub const Deselect: SelectionFlag = _
All specified indexes will be deselected. (C++ enum variant: Deselect = 4
)
sourcepub const Toggle: SelectionFlag = _
pub const Toggle: SelectionFlag = _
All specified indexes will be selected or deselected depending on their current state. (C++ enum variant: Toggle = 8
)
sourcepub const Current: SelectionFlag = _
pub const Current: SelectionFlag = _
The current selection will be updated. (C++ enum variant: Current = 16
)
sourcepub const Rows: SelectionFlag = _
pub const Rows: SelectionFlag = _
All indexes will be expanded to span rows. (C++ enum variant: Rows = 32
)
sourcepub const Columns: SelectionFlag = _
pub const Columns: SelectionFlag = _
All indexes will be expanded to span columns. (C++ enum variant: Columns = 64
)
sourcepub const SelectCurrent: SelectionFlag = _
pub const SelectCurrent: SelectionFlag = _
A combination of Select and Current, provided for convenience. (C++ enum variant: SelectCurrent = 18
)
sourcepub const ToggleCurrent: SelectionFlag = _
pub const ToggleCurrent: SelectionFlag = _
A combination of Toggle and Current, provided for convenience. (C++ enum variant: ToggleCurrent = 24
)
sourcepub const ClearAndSelect: SelectionFlag = _
pub const ClearAndSelect: SelectionFlag = _
A combination of Clear and Select, provided for convenience. (C++ enum variant: ClearAndSelect = 3
)
Trait Implementations§
source§impl<T: Into<QFlags<SelectionFlag>>> BitOr<T> for SelectionFlag
impl<T: Into<QFlags<SelectionFlag>>> BitOr<T> for SelectionFlag
§type Output = QFlags<SelectionFlag>
type Output = QFlags<SelectionFlag>
|
operator.source§impl Clone for SelectionFlag
impl Clone for SelectionFlag
source§fn clone(&self) -> SelectionFlag
fn clone(&self) -> SelectionFlag
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SelectionFlag
impl Debug for SelectionFlag
source§impl From<SelectionFlag> for QFlags<SelectionFlag>
impl From<SelectionFlag> for QFlags<SelectionFlag>
source§fn from(value: SelectionFlag) -> Self
fn from(value: SelectionFlag) -> Self
source§impl From<SelectionFlag> for c_int
impl From<SelectionFlag> for c_int
source§fn from(value: SelectionFlag) -> Self
fn from(value: SelectionFlag) -> Self
source§impl From<i32> for SelectionFlag
impl From<i32> for SelectionFlag
source§impl PartialEq for SelectionFlag
impl PartialEq for SelectionFlag
source§fn eq(&self, other: &SelectionFlag) -> bool
fn eq(&self, other: &SelectionFlag) -> bool
self
and other
values to be equal, and is used
by ==
.