![]() |
| ||
Classes - Annotated - Tree - Functions - Home - Structure |
The QFileIconProvider class provides icons for QFileDialog to use. More...
#include <qfiledialog.h>
Inherits QObject.
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.
See also QFileDialog.
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.
Search the documentation, FAQ, qt-interest archive and more (uses
www.trolltech.com):
This file is part of the Qt toolkit, copyright © 1995-2001 Trolltech, all rights reserved.
Copyright © 2001 Trolltech | Trademarks | Qt version 3.0.0-beta1-beta1
|