QFileIconProvider Class

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

Header: #include <QFileIconProvider>

Public Types

enum IconType { Computer, Desktop, Trashcan, Network, ..., File }

Public Functions

QFileIconProvider()
virtual ~QFileIconProvider()
virtual QIcon icon(IconType type) const
virtual QIcon icon(const QFileInfo & info) const
virtual QString type(const QFileInfo & info) const

Detailed Description

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

Member Type Documentation

enum QFileIconProvider::IconType

ConstantValue
QFileIconProvider::Computer0
QFileIconProvider::Desktop1
QFileIconProvider::Trashcan2
QFileIconProvider::Network3
QFileIconProvider::Drive4
QFileIconProvider::Folder5
QFileIconProvider::File6

Member Function Documentation

QFileIconProvider::QFileIconProvider()

Constructs a file icon provider.

[virtual] QFileIconProvider::~QFileIconProvider()

Destroys the file icon provider.

[virtual] QIcon QFileIconProvider::icon(IconType type) const

Returns an icon set for the given type.

[virtual] QIcon QFileIconProvider::icon(const QFileInfo & info) const

Returns an icon for the file described by info.

[virtual] QString QFileIconProvider::type(const QFileInfo & info) const

Returns the type of the file described by info.

© 2015 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.