diff options
Diffstat (limited to 'src/kernel/tqcolor.cpp')
| -rw-r--r-- | src/kernel/tqcolor.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/kernel/tqcolor.cpp b/src/kernel/tqcolor.cpp index 142fb408a..ffb0f8fe5 100644 --- a/src/kernel/tqcolor.cpp +++ b/src/kernel/tqcolor.cpp @@ -224,8 +224,8 @@ const TQColor & TQt::darkYellow = stdcol[18]; TQColor member functions *****************************************************************************/ -bool TQColor::color_init = FALSE; // color system not initialized -bool TQColor::globals_init = FALSE; // global color not initialized +bool TQColor::color_init = false; // color system not initialized +bool TQColor::globals_init = false; // global color not initialized TQColor::ColorModel TQColor::colormodel = d32; @@ -253,7 +253,7 @@ TQColor* TQColor::globalColors() void TQColor::initGlobalColors() { - globals_init = TRUE; + globals_init = true; #ifdef TQ_WS_X11 // HACK: we need a way to recognize color0 and color1 uniquely, so @@ -361,9 +361,9 @@ void TQColor::setPixel( uint pixel ) { switch ( colormodel ) { case d8: - d.d8.direct = TRUE; - d.d8.invalid = FALSE; - d.d8.dirty = FALSE; + d.d8.direct = true; + d.d8.invalid = false; + d.d8.dirty = false; d.d8.pix = pixel; break; case d32: @@ -461,8 +461,8 @@ TQColor &TQColor::operator=( const TQColor &c ) /*! \fn bool TQColor::isValid() const - Returns FALSE if the color is invalid, i.e. it was constructed using the - default constructor; otherwise returns TRUE. + Returns false if the color is invalid, i.e. it was constructed using the + default constructor; otherwise returns true. */ /*! @@ -533,7 +533,7 @@ void TQColor::setNamedColor( const TQString &name ) if ( name.isEmpty() ) { d.argb = 0; if ( colormodel == d8 ) { - d.d8.invalid = TRUE; + d.d8.invalid = true; } else { d.d32.argb = Invalid; } @@ -751,9 +751,9 @@ void TQColor::setRgb( int r, int g, int b ) } d.argb = tqRgb( r, g, b ); if ( colormodel == d8 ) { - d.d8.invalid = FALSE; - d.d8.direct = FALSE; - d.d8.dirty = TRUE; + d.d8.invalid = false; + d.d8.direct = false; + d.d8.dirty = true; } else { d.d32.pix = Dirt; } @@ -773,9 +773,9 @@ void TQColor::setRgb( TQRgb rgb ) { d.argb = rgb; if ( colormodel == d8 ) { - d.d8.invalid = FALSE; - d.d8.direct = FALSE; - d.d8.dirty = TRUE; + d.d8.invalid = false; + d.d8.direct = false; + d.d8.dirty = true; } else { d.d32.pix = Dirt; } @@ -876,14 +876,14 @@ TQColor TQColor::dark( int factor ) const /*! \fn bool TQColor::operator==( const TQColor &c ) const - Returns TRUE if this color has the same RGB value as \a c; - otherwise returns FALSE. + Returns true if this color has the same RGB value as \a c; + otherwise returns false. */ /*! \fn bool TQColor::operator!=( const TQColor &c ) const - Returns TRUE if this color has a different RGB value from \a c; - otherwise returns FALSE. + Returns true if this color has a different RGB value from \a c; + otherwise returns false. */ /*! |
