[−][src]Struct qt_widgets::q_abstract_item_delegate::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
.
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]
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]
fn clone(&self) -> EndEditHint
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for EndEditHint
[src]
impl Debug for EndEditHint
[src]
impl Eq for EndEditHint
[src]
impl From<EndEditHint> for c_int
[src]
fn from(value: EndEditHint) -> Self
[src]
impl From<i32> for EndEditHint
[src]
impl PartialEq<EndEditHint> for EndEditHint
[src]
fn eq(&self, other: &EndEditHint) -> bool
[src]
fn ne(&self, other: &EndEditHint) -> bool
[src]
impl StructuralEq for EndEditHint
[src]
impl StructuralPartialEq for EndEditHint
[src]
Auto Trait Implementations
impl RefUnwindSafe for EndEditHint
impl Send for EndEditHint
impl Sync for EndEditHint
impl Unpin for EndEditHint
impl UnwindSafe for EndEditHint
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>,