[−][src]Struct qt_widgets::QFileIconProvider
The QFileIconProvider class provides file icons for the QDirModel and the QFileSystemModel classes.
C++ class: QFileIconProvider
.
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
.
Returns an icon set for the given type.
pub unsafe fn icon_q_file_info(
&self,
info: impl CastInto<Ref<QFileInfo>>
) -> CppBox<QIcon>
[src]
&self,
info: impl CastInto<Ref<QFileInfo>>
) -> CppBox<QIcon>
Returns an icon for the file described by info.
Calls C++ function: virtual QIcon QFileIconProvider::icon(const QFileInfo& info) const
.
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()
.
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
.
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(&mut self, options: QFlags<Option>)
[src]
Sets options that affect the icon provider.
Calls C++ function: void QFileIconProvider::setOptions(QFlags<QFileIconProvider::Option> options)
.
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]
&self,
info: impl CastInto<Ref<QFileInfo>>
) -> CppBox<QString>
Returns the type of the file described by info.
Calls C++ function: virtual QString QFileIconProvider::type(const QFileInfo& info) const
.
Returns the type of the file described by info.
Trait Implementations
impl CppDeletable for QFileIconProvider
[src]
Auto Trait Implementations
impl Send for QFileIconProvider
impl Unpin for QFileIconProvider
impl Sync for QFileIconProvider
impl UnwindSafe for QFileIconProvider
impl RefUnwindSafe for QFileIconProvider
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,