diff options
Diffstat (limited to 'doc/man/man3/tqiconset.3qt')
-rw-r--r-- | doc/man/man3/tqiconset.3qt | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/man/man3/tqiconset.3qt b/doc/man/man3/tqiconset.3qt index 8cb5e2634..347960cc3 100644 --- a/doc/man/man3/tqiconset.3qt +++ b/doc/man/man3/tqiconset.3qt @@ -77,22 +77,22 @@ TQIconSet \- Set of icons with different styles and sizes .SS "Static Public Members" .in +1c .ti -1c -.BI "void \fBsetIconSize\fR ( Size which, const QSize & size )" +.BI "void \fBsetIconSize\fR ( Size which, const TQSize & size )" .br .ti -1c -.BI "const QSize & \fBiconSize\fR ( Size which )" +.BI "const TQSize & \fBiconSize\fR ( Size which )" .br .in -1c .SH DESCRIPTION The TQIconSet class provides a set of icons with different styles and sizes. .PP -A TQIconSet can generate smaller, larger, active, and disabled pixmaps from the set of icons it is given. Such pixmaps are used by QToolButton, QHeader, QPopupMenu, etc. to show an icon representing a particular action. +A TQIconSet can generate smaller, larger, active, and disabled pixmaps from the set of icons it is given. Such pixmaps are used by TQToolButton, QHeader, TQPopupMenu, etc. to show an icon representing a particular action. .PP The simplest use of TQIconSet is to create one from a QPixmap and then use it, allowing TQt to work out all the required icon styles and sizes. For example: .PP .nf .br - QToolButton *but = new QToolButton( TQIconSet( QPixmap("open.xpm") ), ... ); + TQToolButton *but = new TQToolButton( TQIconSet( QPixmap("open.xpm") ), ... ); .br .fi .PP @@ -112,7 +112,7 @@ You can use the static function setIconSize() to set the preferred size of the g .PP The isGenerated() function returns TRUE if an icon was generated by TQIconSet or by a factory; clearGenerated() clears all cached pixmaps. .SH "Making Classes that Use TQIconSet" -If you write your own widgets that have an option to set a small pixmap, consider allowing a TQIconSet to be set for that pixmap. The TQt class QToolButton is an example of such a widget. +If you write your own widgets that have an option to set a small pixmap, consider allowing a TQIconSet to be set for that pixmap. The TQt class TQToolButton is an example of such a widget. .PP Provide a method to set a TQIconSet, and when you draw the icon, choose whichever icon is appropriate for the current state of your widget. For example: .PP @@ -146,7 +146,7 @@ You might also make use of the Active mode, perhaps making your widget Active wh .PP </center> .PP -See also TQIconFactory, QPixmap, QMainWindow::usesBigPixmaps, GUI Design Handbook: Iconic Label, Graphics Classes, Image Processing Classes, and Implicitly and Explicitly Shared Classes. +See also TQIconFactory, QPixmap, TQMainWindow::usesBigPixmaps, GUI Design Handbook: Iconic Label, Graphics Classes, Image Processing Classes, and Implicitly and Explicitly Shared Classes. .SS "Member Type Documentation" .SH "TQIconSet::Mode" This enum type describes the mode for which a pixmap is intended to be used. The currently defined modes are: @@ -167,7 +167,7 @@ This enum type describes the size at which a pixmap is intended to be used. The .PP If a Small pixmap is not set by TQIconSet::setPixmap(), the Large pixmap will be automatically scaled down to the size of a small pixmap to generate the Small pixmap when required. Similarly, a Small pixmap will be automatically scaled up to generate a Large pixmap. The preferred sizes for large/small generated icons can be set using setIconSize(). .PP -See also setIconSize(), iconSize(), setPixmap(), pixmap(), and QMainWindow::usesBigPixmaps. +See also setIconSize(), iconSize(), setPixmap(), pixmap(), and TQMainWindow::usesBigPixmaps. .SH "TQIconSet::State" This enum describes the state for which a pixmap is intended to be used. The \fIstate\fR can be: .TP @@ -199,7 +199,7 @@ Clears all cached pixmaps, including those obtained from an eventual TQIconFacto Detaches this icon set from others with which it may share data. .PP You will never need to call this function; other TQIconSet functions call it as necessary. -.SH "const QSize & TQIconSet::iconSize ( Size which )\fC [static]\fR" +.SH "const TQSize & TQIconSet::iconSize ( Size which )\fC [static]\fR" If \fIwhich\fR is Small, returns the preferred size of a small generated icon; if \fIwhich\fR is Large, returns the preferred size of a large generated icon. .PP See also setIconSize(). @@ -237,7 +237,7 @@ Sets this icon set to use pixmap \fIpixmap\fR for the Normal pixmap, assuming it This is equivalent to assigning TQIconSet(\fIpixmap\fR, \fIsize\fR) to this icon set. .PP This function does nothing if \fIpixmap\fR is a null pixmap. -.SH "void TQIconSet::setIconSize ( Size which, const QSize & size )\fC [static]\fR" +.SH "void TQIconSet::setIconSize ( Size which, const TQSize & size )\fC [static]\fR" Set the preferred size for all small or large icons that are generated after this call. If \fIwhich\fR is Small, sets the preferred size of small generated icons to \fIsize\fR. Similarly, if \fIwhich\fR is Large, sets the preferred size of large generated icons to \fIsize\fR. .PP Note that cached icons will not be regenerated, so it is recommended that you set the preferred icon sizes before generating any icon sets. Also note that the preferred icon sizes will be ignored for icon sets that have been created using both small and large pixmaps. |