summaryrefslogtreecommitdiffstats
path: root/src/kernel/ntqcolor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/ntqcolor.h')
-rw-r--r--src/kernel/ntqcolor.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/kernel/ntqcolor.h b/src/kernel/ntqcolor.h
index 30acc281f..d45dd4f5a 100644
--- a/src/kernel/ntqcolor.h
+++ b/src/kernel/ntqcolor.h
@@ -48,32 +48,32 @@
const TQRgb TQT_RGB_MASK = 0x00ffffff; // masks RGB values
-Q_EXPORT inline int tqRed( TQRgb rgb ) // get red part of RGB
+TQ_EXPORT inline int tqRed( TQRgb rgb ) // get red part of RGB
{ return (int)((rgb >> 16) & 0xff); }
-Q_EXPORT inline int tqGreen( TQRgb rgb ) // get green part of RGB
+TQ_EXPORT inline int tqGreen( TQRgb rgb ) // get green part of RGB
{ return (int)((rgb >> 8) & 0xff); }
-Q_EXPORT inline int tqBlue( TQRgb rgb ) // get blue part of RGB
+TQ_EXPORT inline int tqBlue( TQRgb rgb ) // get blue part of RGB
{ return (int)(rgb & 0xff); }
-Q_EXPORT inline int tqAlpha( TQRgb rgb ) // get alpha part of RGBA
+TQ_EXPORT inline int tqAlpha( TQRgb rgb ) // get alpha part of RGBA
{ return (int)((rgb >> 24) & 0xff); }
-Q_EXPORT inline TQRgb tqRgb( int r, int g, int b )// set RGB value
+TQ_EXPORT inline TQRgb tqRgb( int r, int g, int b )// set RGB value
{ return (0xff << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff); }
-Q_EXPORT inline TQRgb tqRgba( int r, int g, int b, int a )// set RGBA value
+TQ_EXPORT inline TQRgb tqRgba( int r, int g, int b, int a )// set RGBA value
{ return ((a & 0xff) << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff); }
-Q_EXPORT inline int tqGray( int r, int g, int b )// convert R,G,B to gray 0..255
+TQ_EXPORT inline int tqGray( int r, int g, int b )// convert R,G,B to gray 0..255
{ return (r*11+g*16+b*5)/32; }
-Q_EXPORT inline int tqGray( TQRgb rgb ) // convert RGB to gray 0..255
+TQ_EXPORT inline int tqGray( TQRgb rgb ) // convert RGB to gray 0..255
{ return tqGray( tqRed(rgb), tqGreen(rgb), tqBlue(rgb) ); }
-class Q_EXPORT TQColor
+class TQ_EXPORT TQColor
{
public:
enum Spec { Rgb, Hsv };
@@ -222,8 +222,8 @@ inline bool TQColor::operator!=( const TQColor &c ) const
*****************************************************************************/
#ifndef TQT_NO_DATASTREAM
-Q_EXPORT TQDataStream &operator<<( TQDataStream &, const TQColor & );
-Q_EXPORT TQDataStream &operator>>( TQDataStream &, TQColor & );
+TQ_EXPORT TQDataStream &operator<<( TQDataStream &, const TQColor & );
+TQ_EXPORT TQDataStream &operator>>( TQDataStream &, TQColor & );
#endif
#endif // TQCOLOR_H