CopperSpice API
1.9.2
|
The QFileIconProvider class provides file icons for the QDirModel and the QFileSystemModel classes. More...
Public Types | |
enum | IconType |
Public Methods | |
QFileIconProvider () | |
virtual | ~QFileIconProvider () |
virtual QIcon | icon (const QFileInfo &info) const |
virtual QIcon | icon (IconType type) const |
Options | options () const |
void | setOptions (Options options) |
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 |
QFileIconProvider::QFileIconProvider | ( | ) |
Constructs a file icon provider.
|
virtual |
Destroys the file icon provider.
Returns an icon for the file described by info.
Returns an icon set for the given type.
Options QFileIconProvider::options | ( | ) | const |
Returns the value of the property.
void QFileIconProvider::setOptions | ( | Options | options | ) |
Returns an icon for the file described by options.