Eneboo - Documentación para desarrolladores
Métodos públicos
Referencia de la Clase QFileIconProvider

The QFileIconProvider class provides icons for QFileDialog to use. Más...

#include <qfiledialog.h>

Diagrama de herencias de QFileIconProvider
QObject QObject Qt Qt Qt Qt ImageIconProvider

Lista de todos los miembros.

Métodos públicos

 QFileIconProvider (QObject *parent=0, const char *name=0)
virtual const QPixmappixmap (const QFileInfo &)
 QFileIconProvider (QObject *parent=0, const char *name=0)
virtual const QPixmappixmap (const QFileInfo &)

Descripción detallada

The QFileIconProvider class provides icons for QFileDialog to use.

By default QFileIconProvider is not used, but any application or library can subclass it, reimplement pixmap() to return a suitable icon, and make all QFileDialog objects use it by calling the static function QFileDialog::setIconProvider().

It is advisable to make all the icons that QFileIconProvider returns be the same size or at least the same width. This makes the list view look much better.

Ver también:
QFileDialog

Documentación del constructor y destructor

QFileIconProvider::QFileIconProvider ( QObject parent = 0,
const char *  name = 0 
)

Constructs an empty file icon provider called name, with the parent parent.

QFileIconProvider::QFileIconProvider ( QObject parent = 0,
const char *  name = 0 
)

Documentación de las funciones miembro

const QPixmap * QFileIconProvider::pixmap ( const QFileInfo info) [virtual]

Returns a pointer to a pixmap that should be used to signify the file with the information info.

If pixmap() returns 0, QFileDialog draws the default pixmap.

The default implementation returns particular icons for files, directories, link-files and link-directories. It returns a blank "icon" for other types.

If you return a pixmap here, it should measure 16x16 pixels.

Reimplementado en ImageIconProvider.

virtual const QPixmap* QFileIconProvider::pixmap ( const QFileInfo ) [virtual]

Reimplementado en ImageIconProvider.


La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'