[][src]Struct qt_widgets::q_abstract_item_view::DragDropMode

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

Describes the various drag and drop events the view can act upon. By default the view does not support dragging or dropping (NoDragDrop).

C++ enum: QAbstractItemView::DragDropMode.

C++ documentation:

Describes the various drag and drop events the view can act upon. By default the view does not support dragging or dropping (NoDragDrop).

Note that the model used needs to provide support for drag and drop operations.

This enum was introduced or modified in Qt 4.2.

See also setDragDropMode() and Using drag and drop with item views.

Methods

impl DragDropMode[src]

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

impl DragDropMode[src]

pub const NoDragDrop: DragDropMode[src]

Does not support dragging or dropping. (C++ enum variant: NoDragDrop = 0)

pub const DragOnly: DragDropMode[src]

The view supports dragging of its own items (C++ enum variant: DragOnly = 1)

pub const DropOnly: DragDropMode[src]

The view accepts drops (C++ enum variant: DropOnly = 2)

pub const DragDrop: DragDropMode[src]

The view supports both dragging and dropping (C++ enum variant: DragDrop = 3)

pub const InternalMove: DragDropMode[src]

The view accepts move (not copy) operations only from itself. (C++ enum variant: InternalMove = 4)

Trait Implementations

impl Eq for DragDropMode[src]

impl Clone for DragDropMode[src]

impl PartialEq<DragDropMode> for DragDropMode[src]

impl From<i32> for DragDropMode[src]

impl From<DragDropMode> for c_int[src]

impl Copy for DragDropMode[src]

impl Debug for DragDropMode[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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

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

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