[−][src]Struct qt_widgets::q_abstract_item_view::SelectionMode
This enum indicates how the view responds to user selections:
C++ enum: QAbstractItemView::SelectionMode
.
This enum indicates how the view responds to user selections:
The most commonly used modes are SingleSelection and ExtendedSelection.
Methods
impl SelectionMode
[src]
impl SelectionMode
[src]
pub const NoSelection: SelectionMode
[src]
Items cannot be selected. (C++ enum variant: NoSelection = 0
)
pub const SingleSelection: SelectionMode
[src]
When the user selects an item, any already-selected item becomes unselected. It is possible for the user to deselect the selected item. (C++ enum variant: SingleSelection = 1
)
pub const MultiSelection: SelectionMode
[src]
When the user selects an item in the usual way, the selection status of that item is toggled and the other items are left alone. Multiple items can be toggled by dragging the mouse over them. (C++ enum variant: MultiSelection = 2
)
pub const ExtendedSelection: SelectionMode
[src]
When the user selects an item in the usual way, the selection is cleared and the new item selected. However, if the user presses the Ctrl key when clicking on an item, the clicked item gets toggled and all other items are left untouched. If the user presses the Shift key while clicking on an item, all items between the current item and the clicked item are selected or unselected, depending on the state of the clicked item. Multiple items can be selected by dragging the mouse over them. (C++ enum variant: ExtendedSelection = 3
)
pub const ContiguousSelection: SelectionMode
[src]
When the user selects an item in the usual way, the selection is cleared and the new item selected. However, if the user presses the Shift key while clicking on an item, all items between the current item and the clicked item are selected or unselected, depending on the state of the clicked item. (C++ enum variant: ContiguousSelection = 4
)
Trait Implementations
impl Clone for SelectionMode
[src]
fn clone(&self) -> SelectionMode
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SelectionMode
[src]
impl Debug for SelectionMode
[src]
impl Eq for SelectionMode
[src]
impl From<SelectionMode> for c_int
[src]
fn from(value: SelectionMode) -> Self
[src]
impl From<i32> for SelectionMode
[src]
impl PartialEq<SelectionMode> for SelectionMode
[src]
fn eq(&self, other: &SelectionMode) -> bool
[src]
fn ne(&self, other: &SelectionMode) -> bool
[src]
impl StructuralEq for SelectionMode
[src]
impl StructuralPartialEq for SelectionMode
[src]
Auto Trait Implementations
impl RefUnwindSafe for SelectionMode
impl Send for SelectionMode
impl Sync for SelectionMode
impl Unpin for SelectionMode
impl UnwindSafe for SelectionMode
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]
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>,