[][src]Struct qt_widgets::QFileIconProvider

#[repr(C)]pub struct QFileIconProvider { /* fields omitted */ }

The QFileIconProvider class provides file icons for the QDirModel and the QFileSystemModel classes.

C++ class: QFileIconProvider.

C++ documentation:

The QFileIconProvider class provides file icons for the QDirModel and the QFileSystemModel classes.

Methods

impl QFileIconProvider[src]

pub unsafe fn icon_icon_type(&self, type_: IconType) -> CppBox<QIcon>[src]

Returns an icon set for the given type.

Calls C++ function: virtual QIcon QFileIconProvider::icon(QFileIconProvider::IconType type) const.

C++ documentation:

Returns an icon set for the given type.

pub unsafe fn icon_q_file_info(
    &self,
    info: impl CastInto<Ref<QFileInfo>>
) -> CppBox<QIcon>
[src]

Returns an icon for the file described by info.

Calls C++ function: virtual QIcon QFileIconProvider::icon(const QFileInfo& info) const.

C++ documentation:

Returns an icon for the file described by info.

pub unsafe fn new() -> CppBox<QFileIconProvider>[src]

Constructs a file icon provider.

Calls C++ function: [constructor] void QFileIconProvider::QFileIconProvider().

C++ documentation:

Constructs a file icon provider.

pub unsafe fn options(&self) -> QFlags<Option>[src]

Returns all the options that affect the icon provider. By default, all options are disabled.

Calls C++ function: QFlags<QFileIconProvider::Option> QFileIconProvider::options() const.

C++ documentation:

Returns all the options that affect the icon provider. By default, all options are disabled.

This function was introduced in Qt 5.2.

See also setOptions().

pub unsafe fn set_options(&self, options: QFlags<Option>)[src]

Sets options that affect the icon provider.

Calls C++ function: void QFileIconProvider::setOptions(QFlags<QFileIconProvider::Option> options).

C++ documentation:

Sets options that affect the icon provider.

This function was introduced in Qt 5.2.

See also options().

pub unsafe fn type_(
    &self,
    info: impl CastInto<Ref<QFileInfo>>
) -> CppBox<QString>
[src]

Returns the type of the file described by info.

Calls C++ function: virtual QString QFileIconProvider::type(const QFileInfo& info) const.

C++ documentation:

Returns the type of the file described by info.

Trait Implementations

impl CppDeletable for QFileIconProvider[src]

unsafe fn delete(&self)[src]

Destroys the file icon provider.

Calls C++ function: virtual [destructor] void QFileIconProvider::~QFileIconProvider().

C++ documentation:

Destroys the file icon provider.

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, 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.