The QFileIconProvider class provides file icons for the QDirModel(obsolete) and the QFileSystemModel classes. More...
#include <QFileIconProvider>
enum | IconType { Computer, Desktop, Trashcan, Network, ..., File } |
QFileIconProvider () | |
virtual | ~QFileIconProvider () |
virtual QIcon | icon ( IconType type ) const |
virtual QIcon | icon ( const QFileInfo & info ) const |
virtual QString | type ( const QFileInfo & info ) const |
The QFileIconProvider class provides file icons for the QDirModel(obsolete) and the QFileSystemModel classes.
Constant | Value |
---|---|
QFileIconProvider::Computer | 0 |
QFileIconProvider::Desktop | 1 |
QFileIconProvider::Trashcan | 2 |
QFileIconProvider::Network | 3 |
QFileIconProvider::Drive | 4 |
QFileIconProvider::Folder | 5 |
QFileIconProvider::File | 6 |
Constructs a file icon provider.
Destroys the file icon provider.
Returns an icon set for the given type.
Returns an icon for the file described by info.
Returns the type of the file described by info.