Qt 4.8
|
The QFileIconProvider class provides file icons for the QDirModel and the QFileSystemModel classes. More...
#include <qfileiconprovider.h>
Public Types | |
enum | IconType { Computer, Desktop, Trashcan, Network, Drive, Folder, File } |
Public Functions | |
virtual QIcon | icon (IconType type) const |
Returns an icon set for the given type. More... | |
virtual QIcon | icon (const QFileInfo &info) const |
Returns an icon for the file described by info. More... | |
QFileIconProvider () | |
Constructs a file icon provider. More... | |
virtual QString | type (const QFileInfo &info) const |
Returns the type of the file described by info. More... | |
virtual | ~QFileIconProvider () |
Destroys the file icon provider. More... | |
Properties | |
QScopedPointer< QFileIconProviderPrivate > | d_ptr |
Friends | |
class | QFileDialog |
The QFileIconProvider class provides file icons for the QDirModel and the QFileSystemModel classes.
Definition at line 59 of file qfileiconprovider.h.
Enumerator | |
---|---|
Computer | |
Desktop | |
Trashcan | |
Network | |
Drive | |
Folder | |
File |
Definition at line 64 of file qfileiconprovider.h.
QFileIconProvider::QFileIconProvider | ( | ) |
Constructs a file icon provider.
Definition at line 165 of file qfileiconprovider.cpp.
|
virtual |
Returns an icon set for the given type.
Definition at line 183 of file qfileiconprovider.cpp.
Referenced by QFileInfoGatherer::getInfo(), icon(), QUrlModel::setUrl(), and QFileSystemModelPrivate::QFileSystemNode::updateIcon().
Returns an icon for the file described by info.
Definition at line 410 of file qfileiconprovider.cpp.
Returns the type of the file described by info.
Definition at line 483 of file qfileiconprovider.cpp.
Referenced by QFileInfoGatherer::getInfo(), icon(), QFileSystemModelPrivate::QFileSystemNode::retranslateStrings(), and QDirModelPrivate::type().
|
friend |
Definition at line 73 of file qfileiconprovider.h.
|
private |
Definition at line 71 of file qfileiconprovider.h.