1QFileIconProvider(3qt)                                  QFileIconProvider(3qt)
2
3
4

NAME

6       QFileIconProvider - Icons for QFileDialog to use
7

SYNOPSIS

9       #include <qfiledialog.h>
10
11       Inherits QObject.
12
13   Public Members
14       QFileIconProvider ( QObject * parent = 0, const char * name = 0 )
15       virtual const QPixmap * pixmap ( const QFileInfo & info )
16

DESCRIPTION

18       The QFileIconProvider class provides icons for QFileDialog to use.
19
20       By default QFileIconProvider is not used, but any application or
21       library can subclass it, reimplement pixmap() to return a suitable
22       icon, and make all QFileDialog objects use it by calling the static
23       function QFileDialog::setIconProvider().
24
25       It is advisable to make all the icons that QFileIconProvider returns be
26       the same size or at least the same width. This makes the list view look
27       much better.
28
29       See also QFileDialog and Miscellaneous Classes.
30

MEMBER FUNCTION DOCUMENTATION

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

33       = 0 )
34       Constructs an empty file icon provider called name, with the parent
35       parent.
36

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

38
39       Returns a pointer to a pixmap that should be used to signify the file
40       with the information info.
41
42       If pixmap() returns 0, QFileDialog draws the default pixmap.
43
44       The default implementation returns particular icons for files,
45       directories, link-files and link-directories. It returns a blank "icon"
46       for other types.
47
48       If you return a pixmap here, it should measure 16x16 pixels.
49
50

SEE ALSO

52       http://doc.trolltech.com/qfileiconprovider.html
53       http://www.trolltech.com/faq/tech.html
54
56       Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com.  See the
57       license file included in the distribution for a complete license
58       statement.
59

AUTHOR

61       Generated automatically from the source code.
62

BUGS

64       If you find a bug in Qt, please report it as described in
65       http://doc.trolltech.com/bughowto.html.  Good bug reports help us to
66       help you. Thank you.
67
68       The definitive Qt documentation is provided in HTML format; it is
69       located at $QTDIR/doc/html and can be read using Qt Assistant or with a
70       web browser. This man page is provided as a convenience for those users
71       who prefer man pages, although this format is not officially supported
72       by Trolltech.
73
74       If you find errors in this manual page, please report them to qt-
75       bugs@trolltech.com.  Please include the name of the manual page
76       (qfileiconprovider.3qt) and the Qt version (3.3.8).
77
78
79
80Trolltech AS                    2 February 2007         QFileIconProvider(3qt)
Impressum