[][src]Struct qt_widgets::q_combo_box::SizeAdjustPolicy

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

This enum specifies how the size hint of the QComboBox should adjust when new content is added or content changes.

C++ enum: QComboBox::SizeAdjustPolicy.

C++ documentation:

This enum specifies how the size hint of the QComboBox should adjust when new content is added or content changes.

Methods

impl SizeAdjustPolicy[src]

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

impl SizeAdjustPolicy[src]

pub const AdjustToContents: SizeAdjustPolicy[src]

The combobox will always adjust to the contents (C++ enum variant: AdjustToContents = 0)

pub const AdjustToContentsOnFirstShow: SizeAdjustPolicy[src]

The combobox will adjust to its contents the first time it is shown. (C++ enum variant: AdjustToContentsOnFirstShow = 1)

pub const AdjustToMinimumContentsLength: SizeAdjustPolicy[src]

Use AdjustToContents or AdjustToContentsOnFirstShow instead. (C++ enum variant: AdjustToMinimumContentsLength = 2)

pub const AdjustToMinimumContentsLengthWithIcon: SizeAdjustPolicy[src]

The combobox will adjust to minimumContentsLength plus space for an icon. For performance reasons use this policy on large models. (C++ enum variant: AdjustToMinimumContentsLengthWithIcon = 3)

Trait Implementations

impl Clone for SizeAdjustPolicy[src]

impl Copy for SizeAdjustPolicy[src]

impl Debug for SizeAdjustPolicy[src]

impl Eq for SizeAdjustPolicy[src]

impl From<SizeAdjustPolicy> for c_int[src]

impl From<i32> for SizeAdjustPolicy[src]

impl PartialEq<SizeAdjustPolicy> for SizeAdjustPolicy[src]

impl StructuralEq for SizeAdjustPolicy[src]

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