[][src]Struct qt_widgets::q_combo_box::InsertPolicy

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

This enum specifies what the QComboBox should do when a new string is entered by the user.

C++ enum: QComboBox::InsertPolicy.

C++ documentation:

This enum specifies what the QComboBox should do when a new string is entered by the user.

Methods

impl InsertPolicy[src]

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

impl InsertPolicy[src]

pub const NoInsert: InsertPolicy[src]

The string will not be inserted into the combobox. (C++ enum variant: NoInsert = 0)

pub const InsertAtTop: InsertPolicy[src]

The string will be inserted as the first item in the combobox. (C++ enum variant: InsertAtTop = 1)

pub const InsertAtCurrent: InsertPolicy[src]

The current item will be replaced by the string. (C++ enum variant: InsertAtCurrent = 2)

pub const InsertAtBottom: InsertPolicy[src]

The string will be inserted after the last item in the combobox. (C++ enum variant: InsertAtBottom = 3)

pub const InsertAfterCurrent: InsertPolicy[src]

The string is inserted after the current item in the combobox. (C++ enum variant: InsertAfterCurrent = 4)

pub const InsertBeforeCurrent: InsertPolicy[src]

The string is inserted before the current item in the combobox. (C++ enum variant: InsertBeforeCurrent = 5)

pub const InsertAlphabetically: InsertPolicy[src]

The string is inserted in the alphabetic order in the combobox. (C++ enum variant: InsertAlphabetically = 6)

Trait Implementations

impl Eq for InsertPolicy[src]

impl Clone for InsertPolicy[src]

impl PartialEq<InsertPolicy> for InsertPolicy[src]

impl From<i32> for InsertPolicy[src]

impl From<InsertPolicy> for c_int[src]

impl Copy for InsertPolicy[src]

impl Debug for InsertPolicy[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]