TQFileIconProvider(3qt)

NAME
TQFileIconProvider - Icons for TQFileDialog to use

SYNOPSIS
#include <tqfiledialog.h>

Inherits TQObject.

  Public Members
TQFileIconProvider ( TQObject * parent = 0, const char * name = 0 )
virtual const TQPixmap * pixmap ( const TQFileInfo & info )

DESCRIPTION
The TQFileIconProvider class provides icons for TQFileDialog to use.

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

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

See also TQFileDialog and Miscellaneous Classes.

MEMBER FUNCTION DOCUMENTATION

TQFileIconProvider::TQFileIconProvider ( TQObject * parent = 0, const char * name = 0 )
Constructs an empty file icon provider called name, with the parent parent.

const TQPixmap * TQFileIconProvider::pixmap ( const TQFileInfo & info ) [virtual]
Returns a pointer to a pixmap that should be used to signify the file with the information info.

If pixmap() returns 0, TQFileDialog 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.

SEE ALSO
http://doc.trolltech.com/tqfileiconprovider.html http://www.trolltech.com/faq/tech.html

COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement.

AUTHOR
Generated automatically from the source code.

BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you.

The definitive TQt documentation is provided in HTML format; it is located at $TQTDIR/doc/html and can be read using TQt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech.

If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (tqfileiconprovider.3qt) and the Qt version (3.3.8).