diff options
Diffstat (limited to 'src/kernel/tqiconset.cpp')
| -rw-r--r-- | src/kernel/tqiconset.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/kernel/tqiconset.cpp b/src/kernel/tqiconset.cpp index 22e8a8f1d..d22116207 100644 --- a/src/kernel/tqiconset.cpp +++ b/src/kernel/tqiconset.cpp @@ -263,7 +263,7 @@ TQIconSetIcon *TQIconSetPrivate::icon( const TQIconSet *iconSet, 22 x 22, while the default large size is 32 x 32. These sizes only affect generated icons. - The isGenerated() function returns TRUE if an icon was generated by + The isGenerated() function returns true if an icon was generated by TQIconSet or by a factory; clearGenerated() clears all cached pixmaps. @@ -551,8 +551,8 @@ TQPixmap TQIconSet::pixmap( Size size, Mode mode, State state ) const icon->pixmap = new TQPixmap( d->defaultPix ); } else { /* - No icons are available for { TRUE, Normal, Off } and - { FALSE, Normal, Off }. Try the other 10 combinaisons, + No icons are available for { true, Normal, Off } and + { false, Normal, Off }. Try the other 10 combinaisons, best ones first. */ const int N = 10; @@ -561,16 +561,16 @@ TQPixmap TQIconSet::pixmap( Size size, Mode mode, State state ) const Mode mode; State state; } tryList[N] = { - { TRUE, Active, Off }, - { TRUE, Normal, On }, - { TRUE, Active, On }, - { FALSE, Active, Off }, - { FALSE, Normal, On }, - { FALSE, Active, On }, - { TRUE, Disabled, Off }, - { TRUE, Disabled, On }, - { FALSE, Disabled, Off }, - { FALSE, Disabled, On } + { true, Active, Off }, + { true, Normal, On }, + { true, Active, On }, + { false, Active, Off }, + { false, Normal, On }, + { false, Active, On }, + { true, Disabled, Off }, + { true, Disabled, On }, + { false, Disabled, Off }, + { false, Disabled, On } }; for ( int i = 0; i < N; i++ ) { @@ -648,16 +648,16 @@ TQPixmap TQIconSet::pixmap() const } /*! - Returns TRUE if the pixmap with size \a size, mode \a mode and + Returns true if the pixmap with size \a size, mode \a mode and state \a state is generated from other pixmaps; otherwise returns - FALSE. + false. A pixmap obtained from a TQIconFactory is considered non-generated. */ bool TQIconSet::isGenerated( Size size, Mode mode, State state ) const { if ( !d ) - return TRUE; + return true; return d->icon( this, size, mode, state )->origin == Generated; } @@ -693,7 +693,7 @@ void TQIconSet::installIconFactory( TQIconFactory *factory ) } /*! - Returns TRUE if the icon set is empty; otherwise returns FALSE. + Returns true if the icon set is empty; otherwise returns false. */ bool TQIconSet::isNull() const { @@ -857,7 +857,7 @@ TQPixmap *TQIconSet::createDisabled( Size size, State state ) const By reimplementing createPixmap(), you can override TQIconSet's default algorithm for computing pixmaps not supplied by the user. - Call setAutoDelete(TRUE) if you want the factory to automatically + Call setAutoDelete(true) if you want the factory to automatically delete itself when it is no longer needed by TQIconSet. \sa TQIconSet @@ -899,9 +899,9 @@ TQPixmap *TQIconFactory::createPixmap( const TQIconSet& /* iconSet */, /*! \fn void TQIconFactory::setAutoDelete( bool autoDelete ) - If \a autoDelete is TRUE, sets the icon factory to automatically + If \a autoDelete is true, sets the icon factory to automatically delete itself when it is no longer referenced by any TQIconSet and - isn't the default factory. If \a autoDelete is FALSE (the default) + isn't the default factory. If \a autoDelete is false (the default) auto-deletion is disabled. \sa autoDelete(), defaultFactory() @@ -910,7 +910,7 @@ TQPixmap *TQIconFactory::createPixmap( const TQIconSet& /* iconSet */, /*! \fn bool TQIconFactory::autoDelete() const - Returns TRUE if auto-deletion is enabled; otherwise returns FALSE. + Returns true if auto-deletion is enabled; otherwise returns false. \sa setAutoDelete() */ @@ -924,7 +924,7 @@ TQIconFactory *TQIconFactory::defaultFactory() { if ( !defaultFac ) { defaultFac = new TQIconFactory; - defaultFac->setAutoDelete( TRUE ); + defaultFac->setAutoDelete( true ); defaultFac->ref(); q_cleanup_icon_factory.set( &defaultFac ); } |
