1QIconFactory(3qt)                                            QIconFactory(3qt)
2
3
4

NAME

6       QIconFactory - Used to create pixmaps for a QIconSet
7

SYNOPSIS

9       #include <qiconset.h>
10
11   Public Members
12       QIconFactory ()
13       virtual ~QIconFactory ()
14       virtual QPixmap * createPixmap ( const QIconSet & iconSet,
15           QIconSet::Size size, QIconSet::Mode mode, QIconSet::State state )
16       void setAutoDelete ( bool autoDelete )
17       bool autoDelete () const
18
19   Static Public Members
20       QIconFactory * defaultFactory ()
21       void installDefaultFactory ( QIconFactory * factory )
22

DESCRIPTION

24       The QIconFactory class is used to create pixmaps for a QIconSet.
25
26       By reimplementing createPixmap(), you can override QIconSet's default
27       algorithm for computing pixmaps not supplied by the user.
28
29       Call setAutoDelete(TRUE) if you want the factory to automatically
30       delete itself when it is no longer needed by QIconSet.
31
32       See also QIconSet and Advanced Widgets.
33

MEMBER FUNCTION DOCUMENTATION

QIconFactory::QIconFactory ()

36       Constructs an icon factory.
37

QIconFactory::~QIconFactory () [virtual]

39       Destroys the object and frees any allocated resources.
40

bool QIconFactory::autoDelete () const

42       Returns TRUE if auto-deletion is enabled; otherwise returns FALSE.
43
44       See also setAutoDelete().
45

QPixmap * QIconFactory::createPixmap ( const QIconSet & iconSet,

47       QIconSet::Size size, QIconSet::Mode mode, QIconSet::State state )
48       [virtual]
49       Ceates a pixmap for iconSet with a certain size, mode, and state.
50       Returns 0 if the default QIconSet algorithm should be used to create a
51       pixmap that wasn't supplied by the user.
52
53       It is the caller's responsibility to delete the returned pixmap.
54
55       The default implementation always returns 0.
56

QIconFactory * QIconFactory::defaultFactory () [static]

58       Returns the default icon factory.
59
60       See also installDefaultFactory().
61

void QIconFactory::installDefaultFactory ( QIconFactory * factory ) [static]

63       Replaces the default icon factory with factory.
64

void QIconFactory::setAutoDelete ( bool autoDelete )

66       If autoDelete is TRUE, sets the icon factory to automatically delete
67       itself when it is no longer referenced by any QIconSet and isn't the
68       default factory. If autoDelete is FALSE (the default) auto-deletion is
69       disabled.
70
71       See also autoDelete() and defaultFactory().
72
73

SEE ALSO

75       http://doc.trolltech.com/qiconfactory.html
76       http://www.trolltech.com/faq/tech.html
77
79       Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com.  See the
80       license file included in the distribution for a complete license
81       statement.
82

AUTHOR

84       Generated automatically from the source code.
85

BUGS

87       If you find a bug in Qt, please report it as described in
88       http://doc.trolltech.com/bughowto.html.  Good bug reports help us to
89       help you. Thank you.
90
91       The definitive Qt documentation is provided in HTML format; it is
92       located at $QTDIR/doc/html and can be read using Qt Assistant or with a
93       web browser. This man page is provided as a convenience for those users
94       who prefer man pages, although this format is not officially supported
95       by Trolltech.
96
97       If you find errors in this manual page, please report them to qt-
98       bugs@trolltech.com.  Please include the name of the manual page
99       (qiconfactory.3qt) and the Qt version (3.3.8).
100
101
102
103Trolltech AS                    2 February 2007              QIconFactory(3qt)
Impressum