[−][src]Struct qt_widgets::q_abstract_item_view::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
.
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]
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]
fn clone(&self) -> DragDropMode
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<DragDropMode> for DragDropMode
[src]
fn eq(&self, other: &DragDropMode) -> bool
[src]
fn ne(&self, other: &DragDropMode) -> bool
[src]
impl From<i32> for DragDropMode
[src]
impl From<DragDropMode> for c_int
[src]
fn from(value: DragDropMode) -> Self
[src]
impl Copy for DragDropMode
[src]
impl Debug for DragDropMode
[src]
Auto Trait Implementations
impl Send for DragDropMode
impl Unpin for DragDropMode
impl Sync for DragDropMode
impl UnwindSafe for DragDropMode
impl RefUnwindSafe for DragDropMode
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,