[][src]Struct qt_widgets::q_abstract_item_view::SelectionMode

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

This enum indicates how the view responds to user selections:

C++ enum: QAbstractItemView::SelectionMode.

C++ documentation:

This enum indicates how the view responds to user selections:

The most commonly used modes are SingleSelection and ExtendedSelection.

Methods

impl SelectionMode[src]

pub fn to_int(&self) -> c_int[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]

impl Copy for SelectionMode[src]

impl Debug for SelectionMode[src]

impl Eq for SelectionMode[src]

impl From<SelectionMode> for c_int[src]

impl From<i32> for SelectionMode[src]

impl PartialEq<SelectionMode> for SelectionMode[src]

impl StructuralEq for SelectionMode[src]

impl StructuralPartialEq for SelectionMode[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.