The Q3FileIconProvider class provides icons for Q3FileDialog to use. More...
#include <Q3FileIconProvider>
This class is part of the Qt 3 support library. It is provided to keep old source code working. We strongly advise against using it in new code. See Porting to Qt 4 for more information.
Inherits: QObject.
Q3FileIconProvider ( QObject * parent = 0, const char * name = 0 ) | |
virtual const QPixmap * | pixmap ( const QFileInfo & info ) |
The Q3FileIconProvider class provides icons for Q3FileDialog to use.
By default Q3FileIconProvider is not used, but any application or library can subclass it, reimplement pixmap() to return a suitable icon, and make all Q3FileDialog objects use it by calling the static function Q3FileDialog::setIconProvider().
It is advisable to make all the icons that Q3FileIconProvider returns be the same size or at least the same width. This makes the list view look much better.
See also Q3FileDialog.
Constructs an empty file icon provider called name, with the parent parent.
Returns a pointer to a pixmap that should be used to signify the file with the information info.
If pixmap() returns 0, Q3FileDialog 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.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.