CopperSpice API  1.9.2
QFileIconProvider Class Reference

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
 

Detailed Description

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

Member Enumeration Documentation

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

Constructor & Destructor Documentation

QFileIconProvider::QFileIconProvider ( )

Constructs a file icon provider.

QFileIconProvider::~QFileIconProvider ( )
virtual

Destroys the file icon provider.

Method Documentation

QIcon QFileIconProvider::icon ( const QFileInfo info) const
virtual

Returns an icon for the file described by info.

QIcon QFileIconProvider::icon ( IconType  type) const
virtual

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.

QString QFileIconProvider::type ( const QFileInfo info) const
virtual

Returns the type of the file described by info.