diff options
Diffstat (limited to 'src/kernel/qcolor.cpp')
| -rw-r--r-- | src/kernel/qcolor.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/src/kernel/qcolor.cpp b/src/kernel/qcolor.cpp index 832e5b7f7..a7f6b30ba 100644 --- a/src/kernel/qcolor.cpp +++ b/src/kernel/qcolor.cpp @@ -259,10 +259,10 @@ void TQColor::initGlobalColors() // HACK: we need a way to recognize color0 and color1 uniquely, so // that we can use color0 and color1 with fixed pixel values on // all screens - stdcol[ 0].d.argb = qRgba(255, 255, 255, 1); - stdcol[ 1].d.argb = qRgba( 0, 0, 0, 1); + stdcol[ 0].d.argb = tqRgba(255, 255, 255, 1); + stdcol[ 1].d.argb = tqRgba( 0, 0, 0, 1); #else - stdcol[ 0].d.argb = qRgb(255,255,255); + stdcol[ 0].d.argb = tqRgb(255,255,255); stdcol[ 1].d.argb = 0; #endif // Q_WS_X11 stdcol[ 0].setPixel( COLOR0_PIX ); @@ -605,9 +605,9 @@ void TQColor::hsv( int *h, int *s, int *v ) const { if ( !h || !s || !v ) return; - int r = qRed(d.argb); - int g = qGreen(d.argb); - int b = qBlue(d.argb); + int r = tqRed(d.argb); + int g = tqGreen(d.argb); + int b = tqBlue(d.argb); uint max = r; // maximum RGB component int whatmax = 0; // r=>0, g=>1, b=>2 if ( (uint)g > max ) { @@ -712,7 +712,7 @@ void TQColor::setHsv( int h, int s, int v ) For an invalid color, the alpha value of the returned color is unspecified. - \sa setRgb(), hsv(), qRed(), qBlue(), qGreen(), isValid() + \sa setRgb(), hsv(), tqRed(), tqBlue(), tqGreen(), isValid() */ /*! \fn void TQColor::getRgb( int *r, int *g, int *b ) const @@ -727,9 +727,9 @@ void TQColor::setHsv( int h, int s, int v ) /*! \obsolete Use getRgb() instead */ void TQColor::rgb( int *r, int *g, int *b ) const { - *r = qRed(d.argb); - *g = qGreen(d.argb); - *b = qBlue(d.argb); + *r = tqRed(d.argb); + *g = tqGreen(d.argb); + *b = tqBlue(d.argb); } @@ -749,7 +749,7 @@ void TQColor::setRgb( int r, int g, int b ) #endif return; } - d.argb = qRgb( r, g, b ); + d.argb = tqRgb( r, g, b ); if ( colormodel == d8 ) { d.d8.invalid = FALSE; d.d8.direct = FALSE; @@ -959,60 +959,60 @@ TQDataStream &operator>>( TQDataStream &s, TQColor &c ) *****************************************************************************/ /*! - \fn int qRed( TQRgb rgb ) + \fn int tqRed( TQRgb rgb ) \relates TQColor Returns the red component of the RGB triplet \a rgb. - \sa qRgb(), TQColor::red() + \sa tqRgb(), TQColor::red() */ /*! - \fn int qGreen( TQRgb rgb ) + \fn int tqGreen( TQRgb rgb ) \relates TQColor Returns the green component of the RGB triplet \a rgb. - \sa qRgb(), TQColor::green() + \sa tqRgb(), TQColor::green() */ /*! - \fn int qBlue( TQRgb rgb ) + \fn int tqBlue( TQRgb rgb ) \relates TQColor Returns the blue component of the RGB triplet \a rgb. - \sa qRgb(), TQColor::blue() + \sa tqRgb(), TQColor::blue() */ /*! - \fn int qAlpha( TQRgb rgba ) + \fn int tqAlpha( TQRgb rgba ) \relates TQColor Returns the alpha component of the RGBA quadruplet \a rgba. */ /*! - \fn TQRgb qRgb( int r, int g, int b ) + \fn TQRgb tqRgb( int r, int g, int b ) \relates TQColor Returns the RGB triplet \a (r,g,b). The return type TQRgb is equivalent to \c unsigned \c int. - \sa qRgba(), qRed(), qGreen(), qBlue() + \sa tqRgba(), tqRed(), tqGreen(), tqBlue() */ /*! - \fn TQRgb qRgba( int r, int g, int b, int a ) + \fn TQRgb tqRgba( int r, int g, int b, int a ) \relates TQColor Returns the RGBA quadruplet \a (r,g,b,a). The return type TQRgba is equivalent to \c unsigned \c int. - \sa qRgb(), qRed(), qGreen(), qBlue() + \sa tqRgb(), tqRed(), tqGreen(), tqBlue() */ /*! - \fn int qGray( int r, int g, int b ) + \fn int tqGray( int r, int g, int b ) \relates TQColor Returns a gray value 0..255 from the (\a r, \a g, \a b) triplet. @@ -1022,7 +1022,7 @@ TQDataStream &operator>>( TQDataStream &s, TQColor &c ) */ /*! - \overload int qGray( qRgb rgb ) + \overload int tqGray( tqRgb rgb ) \relates TQColor Returns a gray value 0..255 from the given \a rgb colour. |
