[][src]Struct qt_widgets::q_abstract_item_delegate::EndEditHint

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

This enum describes the different hints that the delegate can give to the model and view components to make editing data in a model a comfortable experience for the user.

C++ enum: QAbstractItemDelegate::EndEditHint.

C++ documentation:

This enum describes the different hints that the delegate can give to the model and view components to make editing data in a model a comfortable experience for the user.

These hints let the delegate influence the behavior of the view:

Note that custom views may interpret the concepts of next and previous differently.

The following hints are most useful when models are used that cache data, such as those that manipulate data locally in order to increase performance or conserve network bandwidth.

Although models and views should respond to these hints in appropriate ways, custom components may ignore any or all of them if they are not relevant.

Methods

impl EndEditHint[src]

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

impl EndEditHint[src]

pub const NoHint: EndEditHint[src]

There is no recommended action to be performed. (C++ enum variant: NoHint = 0)

pub const EditNextItem: EndEditHint[src]

The view should use the delegate to open an editor on the next item in the view. (C++ enum variant: EditNextItem = 1)

pub const EditPreviousItem: EndEditHint[src]

The view should use the delegate to open an editor on the previous item in the view. (C++ enum variant: EditPreviousItem = 2)

pub const SubmitModelCache: EndEditHint[src]

If the model caches data, it should write out cached data to the underlying data store. (C++ enum variant: SubmitModelCache = 3)

pub const RevertModelCache: EndEditHint[src]

If the model caches data, it should discard cached data and replace it with data from the underlying data store. (C++ enum variant: RevertModelCache = 4)

Trait Implementations

impl Clone for EndEditHint[src]

impl Copy for EndEditHint[src]

impl Debug for EndEditHint[src]

impl Eq for EndEditHint[src]

impl From<EndEditHint> for c_int[src]

impl From<i32> for EndEditHint[src]

impl PartialEq<EndEditHint> for EndEditHint[src]

impl StructuralEq for EndEditHint[src]

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