summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqcolor.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqcolor.3qt')
-rw-r--r--doc/man/man3/tqcolor.3qt190
1 files changed, 95 insertions, 95 deletions
diff --git a/doc/man/man3/tqcolor.3qt b/doc/man/man3/tqcolor.3qt
index f4acf179e..74070f00e 100644
--- a/doc/man/man3/tqcolor.3qt
+++ b/doc/man/man3/tqcolor.3qt
@@ -1,5 +1,5 @@
'\" t
-.TH QColor 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
+.TH TQColor 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
@@ -7,7 +7,7 @@
.ad l
.nh
.SH NAME
-QColor \- Colors based on RGB or HSV values
+TQColor \- Colors based on RGB or HSV values
.SH SYNOPSIS
\fC#include <ntqcolor.h>\fR
.PP
@@ -26,37 +26,37 @@ QColor \- Colors based on RGB or HSV values
.BI "\fBQColor\fR ( int x, int y, int z, Spec colorSpec )"
.br
.ti -1c
-.BI "\fBQColor\fR ( QRgb rgb, uint pixel = 0xffffffff )"
+.BI "\fBQColor\fR ( TQRgb rgb, uint pixel = 0xffffffff )"
.br
.ti -1c
-.BI "\fBQColor\fR ( const QString & name )"
+.BI "\fBQColor\fR ( const TQString & name )"
.br
.ti -1c
.BI "\fBQColor\fR ( const char * name )"
.br
.ti -1c
-.BI "\fBQColor\fR ( const QColor & c )"
+.BI "\fBQColor\fR ( const TQColor & c )"
.br
.ti -1c
-.BI "QColor & \fBoperator=\fR ( const QColor & c )"
+.BI "TQColor & \fBoperator=\fR ( const TQColor & c )"
.br
.ti -1c
.BI "bool \fBisValid\fR () const"
.br
.ti -1c
-.BI "QString \fBname\fR () const"
+.BI "TQString \fBname\fR () const"
.br
.ti -1c
-.BI "void \fBsetNamedColor\fR ( const QString & name )"
+.BI "void \fBsetNamedColor\fR ( const TQString & name )"
.br
.ti -1c
-.BI "QRgb \fBrgb\fR () const"
+.BI "TQRgb \fBrgb\fR () const"
.br
.ti -1c
.BI "void \fBsetRgb\fR ( int r, int g, int b )"
.br
.ti -1c
-.BI "void \fBsetRgb\fR ( QRgb rgb )"
+.BI "void \fBsetRgb\fR ( TQRgb rgb )"
.br
.ti -1c
.BI "void \fBgetRgb\fR ( int * r, int * g, int * b ) const"
@@ -86,16 +86,16 @@ QColor \- Colors based on RGB or HSV values
.BI "void getHsv ( int & h, int & s, int & v ) const \fI(obsolete)\fR"
.br
.ti -1c
-.BI "QColor \fBlight\fR ( int factor = 150 ) const"
+.BI "TQColor \fBlight\fR ( int factor = 150 ) const"
.br
.ti -1c
-.BI "QColor \fBdark\fR ( int factor = 200 ) const"
+.BI "TQColor \fBdark\fR ( int factor = 200 ) const"
.br
.ti -1c
-.BI "bool \fBoperator==\fR ( const QColor & c ) const"
+.BI "bool \fBoperator==\fR ( const TQColor & c ) const"
.br
.ti -1c
-.BI "bool \fBoperator!=\fR ( const QColor & c ) const"
+.BI "bool \fBoperator!=\fR ( const TQColor & c ) const"
.br
.ti -1c
.BI "uint \fBalloc\fR ()"
@@ -140,28 +140,28 @@ QColor \- Colors based on RGB or HSV values
.SH RELATED FUNCTION DOCUMENTATION
.in +1c
.ti -1c
-.BI "QDataStream & \fBoperator<<\fR ( QDataStream & s, const QColor & c )"
+.BI "QDataStream & \fBoperator<<\fR ( QDataStream & s, const TQColor & c )"
.br
.ti -1c
-.BI "QDataStream & \fBoperator>>\fR ( QDataStream & s, QColor & c )"
+.BI "QDataStream & \fBoperator>>\fR ( QDataStream & s, TQColor & c )"
.br
.ti -1c
-.BI "int \fBqRed\fR ( QRgb rgb )"
+.BI "int \fBqRed\fR ( TQRgb rgb )"
.br
.ti -1c
-.BI "int \fBqGreen\fR ( QRgb rgb )"
+.BI "int \fBqGreen\fR ( TQRgb rgb )"
.br
.ti -1c
-.BI "int \fBqBlue\fR ( QRgb rgb )"
+.BI "int \fBqBlue\fR ( TQRgb rgb )"
.br
.ti -1c
-.BI "int \fBqAlpha\fR ( QRgb rgba )"
+.BI "int \fBqAlpha\fR ( TQRgb rgba )"
.br
.ti -1c
-.BI "QRgb \fBqRgb\fR ( int r, int g, int b )"
+.BI "TQRgb \fBqRgb\fR ( int r, int g, int b )"
.br
.ti -1c
-.BI "QRgb \fBqRgba\fR ( int r, int g, int b, int a )"
+.BI "TQRgb \fBqRgba\fR ( int r, int g, int b, int a )"
.br
.ti -1c
.BI "int \fBqGray\fR ( int r, int g, int b )"
@@ -171,15 +171,15 @@ QColor \- Colors based on RGB or HSV values
.br
.in -1c
.SH DESCRIPTION
-The QColor class provides colors based on RGB or HSV values.
+The TQColor class provides colors based on RGB or HSV values.
.PP
A color is normally specified in terms of RGB (red, green and blue) components, but it is also possible to specify HSV (hue, saturation and value) or set a color name (the names are copied from from the X11 color database).
.PP
-In addition to the RGB value, a QColor also has a pixel value and a validity. The pixel value is used by the underlying window system to refer to a color. It can be thought of as an index into the display hardware's color table.
+In addition to the RGB value, a TQColor also has a pixel value and a validity. The pixel value is used by the underlying window system to refer to a color. It can be thought of as an index into the display hardware's color table.
.PP
-The validity (isValid()) indicates whether the color is legal at all. For example, a RGB color with RGB values out of range is illegal. For performance reasons, QColor mostly disregards illegal colors. The result of using an invalid color is unspecified and will usually be surprising.
+The validity (isValid()) indicates whether the color is legal at all. For example, a RGB color with RGB values out of range is illegal. For performance reasons, TQColor mostly disregards illegal colors. The result of using an invalid color is unspecified and will usually be surprising.
.PP
-There are 19 predefined QColor objects: \fCwhite\fR, \fCblack\fR, \fCred\fR, \fCdarkRed\fR, \fCgreen\fR, \fCdarkGreen\fR, \fCblue\fR, \fCdarkBlue\fR, \fCcyan\fR, \fCdarkCyan\fR, \fCmagenta\fR, \fCdarkMagenta\fR, \fCyellow\fR, \fCdarkYellow\fR, \fCgray\fR, \fCdarkGray\fR, \fClightGray\fR, \fCcolor0\fR and \fCcolor1\fR, accessible as members of the TQt namespace (ie. \fCQt::red\fR).
+There are 19 predefined TQColor objects: \fCwhite\fR, \fCblack\fR, \fCred\fR, \fCdarkRed\fR, \fCgreen\fR, \fCdarkGreen\fR, \fCblue\fR, \fCdarkBlue\fR, \fCcyan\fR, \fCdarkCyan\fR, \fCmagenta\fR, \fCdarkMagenta\fR, \fCyellow\fR, \fCdarkYellow\fR, \fCgray\fR, \fCdarkGray\fR, \fClightGray\fR, \fCcolor0\fR and \fCcolor1\fR, accessible as members of the TQt namespace (ie. \fCQt::red\fR).
.PP
<center>
.ce 1
@@ -189,7 +189,7 @@ There are 19 predefined QColor objects: \fCwhite\fR, \fCblack\fR, \fCred\fR, \fC
.PP
The colors \fCcolor0\fR (zero pixel value) and \fCcolor1\fR (non-zero pixel value) are special colors for drawing in bitmaps. Painting with \fCcolor0\fR sets the bitmap bits to 0 (transparent, i.e. background), and painting with \fCcolor1\fR sets the bits to 1 (opaque, i.e. foreground).
.PP
-The QColor class has an efficient, dynamic color allocation strategy. A color is normally allocated the first time it is used (lazy allocation), that is, whenever the pixel() function is called. The following steps are taken to allocate a color. If, at any point, a suitable color is found then the appropriate pixel value is returned and the subsequent steps are not taken:
+The TQColor class has an efficient, dynamic color allocation strategy. A color is normally allocated the first time it is used (lazy allocation), that is, whenever the pixel() function is called. The following steps are taken to allocate a color. If, at any point, a suitable color is found then the appropriate pixel value is returned and the subsequent steps are not taken:
.PP
<ol type=1>
.IP 1
@@ -229,52 +229,52 @@ Qt returns a hue value of -1 for achromatic colors. If you pass a too-big hue va
.PP
See also QPalette, QColorGroup, QApplication::setColorSpec(), Color FAQ, Widget Appearance and Style, Graphics Classes, and Image Processing Classes.
.SS "Member Type Documentation"
-.SH "QColor::Spec"
-The type of color specified, either RGB or HSV, e.g. in the \fCQColor::QColor( x, y, z, colorSpec)\fR constructor.
+.SH "TQColor::Spec"
+The type of color specified, either RGB or HSV, e.g. in the \fCQColor::TQColor( x, y, z, colorSpec)\fR constructor.
.TP
\fCQColor::Rgb\fR
.TP
\fCQColor::Hsv\fR
.SH MEMBER FUNCTION DOCUMENTATION
-.SH "QColor::QColor ()"
+.SH "TQColor::TQColor ()"
Constructs an invalid color with the RGB value (0, 0, 0). An invalid color is a color that is not properly set up for the underlying window system.
.PP
The alpha value of an invalid color is unspecified.
.PP
See also isValid().
-.SH "QColor::QColor ( int r, int g, int b )"
+.SH "TQColor::TQColor ( int r, int g, int b )"
Constructs a color with the RGB value \fIr\fR, \fIg\fR, \fIb\fR, in the same way as setRgb().
.PP
The color is left invalid if any or the arguments are illegal.
.PP
See also setRgb().
-.SH "QColor::QColor ( int x, int y, int z, Spec colorSpec )"
+.SH "TQColor::TQColor ( int x, int y, int z, Spec colorSpec )"
Constructs a color with the RGB or HSV value \fIx\fR, \fIy\fR, \fIz\fR.
.PP
-The arguments are an RGB value if \fIcolorSpec\fR is QColor::Rgb. \fIx\fR (red), \fIy\fR (green), and \fIz\fR (blue). All of them must be in the range 0-255.
+The arguments are an RGB value if \fIcolorSpec\fR is TQColor::Rgb. \fIx\fR (red), \fIy\fR (green), and \fIz\fR (blue). All of them must be in the range 0-255.
.PP
-The arguments are an HSV value if \fIcolorSpec\fR is QColor::Hsv. \fIx\fR (hue) must be -1 for achromatic colors and 0-359 for chromatic colors; \fIy\fR (saturation) and \fIz\fR (value) must both be in the range 0-255.
+The arguments are an HSV value if \fIcolorSpec\fR is TQColor::Hsv. \fIx\fR (hue) must be -1 for achromatic colors and 0-359 for chromatic colors; \fIy\fR (saturation) and \fIz\fR (value) must both be in the range 0-255.
.PP
See also setRgb() and setHsv().
-.SH "QColor::QColor ( QRgb rgb, uint pixel = 0xffffffff )"
+.SH "TQColor::TQColor ( TQRgb rgb, uint pixel = 0xffffffff )"
Constructs a color with the RGB value \fIrgb\fR and a custom pixel value \fIpixel\fR.
.PP
If \fIpixel\fR == 0xffffffff (the default), then the color uses the RGB value in a standard way. If \fIpixel\fR is something else, then the pixel value is set directly to \fIpixel\fR, skipping the normal allocation procedure.
-.SH "QColor::QColor ( const QString & name )"
+.SH "TQColor::TQColor ( const TQString & name )"
Constructs a named color in the same way as setNamedColor() using name \fIname\fR.
.PP
The color is left invalid if \fIname\fR cannot be parsed.
.PP
See also setNamedColor().
-.SH "QColor::QColor ( const char * name )"
+.SH "TQColor::TQColor ( const char * name )"
Constructs a named color in the same way as setNamedColor() using name \fIname\fR.
.PP
The color is left invalid if \fIname\fR cannot be parsed.
.PP
See also setNamedColor().
-.SH "QColor::QColor ( const QColor & c )"
+.SH "TQColor::TQColor ( const TQColor & c )"
Constructs a color that is a copy of \fIc\fR.
-.SH "uint QColor::alloc ()"
+.SH "uint TQColor::alloc ()"
Allocates the RGB color and returns the pixel value.
.PP
Allocating a color means to obtain a pixel value from the RGB specification. The pixel value is an index into the global color table, but should be considered an arbitrary platform-dependent value.
@@ -282,21 +282,21 @@ Allocating a color means to obtain a pixel value from the RGB specification. The
The pixel() function calls alloc() if necessary, so in general you don't need to call this function.
.PP
See also enterAllocContext().
-.SH "int QColor::blue () const"
+.SH "int TQColor::blue () const"
Returns the B (blue) component of the RGB value.
-.SH "void QColor::cleanup ()\fC [static]\fR"
-Internal clean up required for QColor. This function is called from the QApplication destructor.
+.SH "void TQColor::cleanup ()\fC [static]\fR"
+Internal clean up required for TQColor. This function is called from the QApplication destructor.
.PP
See also initialize().
-.SH "QStringList QColor::colorNames ()\fC [static]\fR"
+.SH "QStringList TQColor::colorNames ()\fC [static]\fR"
Returns a QStringList containing the color names TQt knows about.
-.SH "int QColor::currentAllocContext ()\fC [static]\fR"
+.SH "int TQColor::currentAllocContext ()\fC [static]\fR"
Returns the current color allocation context.
.PP
The default context is 0.
.PP
See also enterAllocContext() and leaveAllocContext().
-.SH "QColor QColor::dark ( int factor = 200 ) const"
+.SH "TQColor TQColor::dark ( int factor = 200 ) const"
Returns a darker (or lighter) color, but does not change this object.
.PP
Returns a darker color if \fIfactor\fR is greater than 100. Setting \fIfactor\fR to 300 returns a color that has one-third the brightness.
@@ -309,7 +309,7 @@ See also light().
.PP
Examples:
.)l desktop/desktop.cpp and themes/wood.cpp.
-.SH "void QColor::destroyAllocContext ( int context )\fC [static]\fR"
+.SH "void TQColor::destroyAllocContext ( int context )\fC [static]\fR"
Destroys a color allocation context, \fIcontext\fR.
.PP
This function deallocates all colors that were allocated in the specified \fIcontext\fR. If \fIcontext\fR == -1, it frees up all colors that the application has allocated. If \fIcontext\fR == -2, it frees up all colors that the application has allocated, except those in the default context.
@@ -319,16 +319,16 @@ The function does nothing for true color displays.
See also enterAllocContext() and alloc().
.PP
Example: showimg/showimg.cpp.
-.SH "int QColor::enterAllocContext ()\fC [static]\fR"
+.SH "int TQColor::enterAllocContext ()\fC [static]\fR"
Enters a color allocation context and returns a non-zero unique identifier.
.PP
-Color allocation contexts are useful for programs that need to allocate many colors and throw them away later, like image viewers. The allocation context functions work for true color displays as well as for colormap displays, except that QColor::destroyAllocContext() does nothing for true color.
+Color allocation contexts are useful for programs that need to allocate many colors and throw them away later, like image viewers. The allocation context functions work for true color displays as well as for colormap displays, except that TQColor::destroyAllocContext() does nothing for true color.
.PP
Example:
.PP
.nf
.br
- QPixmap loadPixmap( QString fileName )
+ QPixmap loadPixmap( TQString fileName )
.br
{
.br
@@ -336,13 +336,13 @@ Example:
.br
if ( alloc_context )
.br
- QColor::destroyAllocContext( alloc_context );
+ TQColor::destroyAllocContext( alloc_context );
.br
- alloc_context = QColor::enterAllocContext();
+ alloc_context = TQColor::enterAllocContext();
.br
QPixmap pm( fileName );
.br
- QColor::leaveAllocContext();
+ TQColor::leaveAllocContext();
.br
return pm;
.br
@@ -354,31 +354,31 @@ The example code loads a pixmap from file. It frees up all colors that were allo
.PP
The initial/default context is 0. TQt keeps a list of colors associated with their allocation contexts. You can call destroyAllocContext() to get rid of all colors that were allocated in a specific context.
.PP
-Calling enterAllocContext() enters an allocation context. The allocation context lasts until you call leaveAllocContext(). QColor has an internal stack of allocation contexts. Each call to enterAllocContex() must have a corresponding leaveAllocContext().
+Calling enterAllocContext() enters an allocation context. The allocation context lasts until you call leaveAllocContext(). TQColor has an internal stack of allocation contexts. Each call to enterAllocContex() must have a corresponding leaveAllocContext().
.PP
.nf
.br
// context 0 active
.br
- int c1 = QColor::enterAllocContext(); // enter context c1
+ int c1 = TQColor::enterAllocContext(); // enter context c1
.br
// context c1 active
.br
- int c2 = QColor::enterAllocContext(); // enter context c2
+ int c2 = TQColor::enterAllocContext(); // enter context c2
.br
// context c2 active
.br
- QColor::leaveAllocContext(); // leave context c2
+ TQColor::leaveAllocContext(); // leave context c2
.br
// context c1 active
.br
- QColor::leaveAllocContext(); // leave context c1
+ TQColor::leaveAllocContext(); // leave context c1
.br
// context 0 active
.br
// Now, free all colors that were allocated in context c2
.br
- QColor::destroyAllocContext( c2 );
+ TQColor::destroyAllocContext( c2 );
.br
.fi
.PP
@@ -387,7 +387,7 @@ You may also want to set the application's color specification. See QApplication
See also leaveAllocContext(), currentAllocContext(), destroyAllocContext(), and QApplication::setColorSpec().
.PP
Example: showimg/showimg.cpp.
-.SH "void QColor::getHsv ( int * h, int * s, int * v ) const"
+.SH "void TQColor::getHsv ( int * h, int * s, int * v ) const"
Returns the current RGB value as HSV. The contents of the \fIh\fR, \fIs\fR and \fIv\fR pointers are set to the HSV values. If any of the three pointers are null, the function does nothing.
.PP
The hue (which \fIh\fR points to) is set to -1 if the color is achromatic.
@@ -395,28 +395,28 @@ The hue (which \fIh\fR points to) is set to -1 if the color is achromatic.
\fBWarning:\fR Colors are stored internally as RGB values, so getHSv() may return slightly different values to those set by setHsv().
.PP
See also setHsv() and rgb().
-.SH "void QColor::getHsv ( int & h, int & s, int & v ) const"
+.SH "void TQColor::getHsv ( int & h, int & s, int & v ) const"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
-.SH "void QColor::getRgb ( int * r, int * g, int * b ) const"
+.SH "void TQColor::getRgb ( int * r, int * g, int * b ) const"
Sets the contents pointed to by \fIr\fR, \fIg\fR and \fIb\fR to the red, green and blue components of the RGB value respectively. The value range for a component is 0..255.
.PP
See also rgb(), setRgb(), and getHsv().
-.SH "int QColor::green () const"
+.SH "int TQColor::green () const"
Returns the G (green) component of the RGB value.
-.SH "void QColor::hsv ( int * h, int * s, int * v ) const"
+.SH "void TQColor::hsv ( int * h, int * s, int * v ) const"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. Use getHsv() instead.
.PP
Example: themes/metal.cpp.
-.SH "void QColor::initialize ()\fC [static]\fR"
-Internal initialization required for QColor. This function is called from the QApplication constructor.
+.SH "void TQColor::initialize ()\fC [static]\fR"
+Internal initialization required for TQColor. This function is called from the QApplication constructor.
.PP
See also cleanup().
-.SH "bool QColor::isValid () const"
+.SH "bool TQColor::isValid () const"
Returns FALSE if the color is invalid, i.e. it was constructed using the default constructor; otherwise returns TRUE.
.PP
Examples:
.)l chart/element.cpp, chart/setdataform.cpp, and scribble/scribble.cpp.
-.SH "void QColor::leaveAllocContext ()\fC [static]\fR"
+.SH "void TQColor::leaveAllocContext ()\fC [static]\fR"
Leaves a color allocation context.
.PP
See enterAllocContext() for a detailed explanation.
@@ -424,7 +424,7 @@ See enterAllocContext() for a detailed explanation.
See also enterAllocContext() and currentAllocContext().
.PP
Example: showimg/showimg.cpp.
-.SH "QColor QColor::light ( int factor = 150 ) const"
+.SH "TQColor TQColor::light ( int factor = 150 ) const"
Returns a lighter (or darker) color, but does not change this object.
.PP
Returns a lighter color if \fIfactor\fR is greater than 100. Setting \fIfactor\fR to 150 returns a color that is 50% brighter.
@@ -437,35 +437,35 @@ See also dark().
.PP
Examples:
.)l desktop/desktop.cpp and themes/wood.cpp.
-.SH "int QColor::maxColors ()\fC [static]\fR"
+.SH "int TQColor::maxColors ()\fC [static]\fR"
Returns the maximum number of colors supported by the underlying window system if the window system uses a palette.
.PP
Otherwise returns -1. Use numBitPlanes() to calculate the available colors in that case.
-.SH "QString QColor::name () const"
+.SH "TQString TQColor::name () const"
Returns the name of the color in the format "#RRGGBB", i.e. a "#" character followed by three two-digit hexadecimal numbers.
.PP
See also setNamedColor().
.PP
Example: chart/setdataform.cpp.
-.SH "int QColor::numBitPlanes ()\fC [static]\fR"
+.SH "int TQColor::numBitPlanes ()\fC [static]\fR"
Returns the number of color bit planes for the underlying window system.
.PP
The returned value is equal to the default pixmap depth.
.PP
See also QPixmap::defaultDepth().
-.SH "bool QColor::operator!= ( const QColor & c ) const"
+.SH "bool TQColor::operator!= ( const TQColor & c ) const"
Returns TRUE if this color has a different RGB value from \fIc\fR; otherwise returns FALSE.
-.SH "QColor & QColor::operator= ( const QColor & c )"
+.SH "TQColor & TQColor::operator= ( const TQColor & c )"
Assigns a copy of the color \fIc\fR and returns a reference to this color.
-.SH "bool QColor::operator== ( const QColor & c ) const"
+.SH "bool TQColor::operator== ( const TQColor & c ) const"
Returns TRUE if this color has the same RGB value as \fIc\fR; otherwise returns FALSE.
-.SH "uint QColor::pixel () const"
+.SH "uint TQColor::pixel () const"
Returns the pixel value.
.PP
This value is used by the underlying window system to refer to a color. It can be thought of as an index into the display hardware's color table, but the value is an arbitrary 32-bit value.
.PP
See also alloc().
-.SH "uint QColor::pixel ( int screen ) const"
+.SH "uint TQColor::pixel ( int screen ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns the pixel value for screen \fIscreen\fR.
@@ -473,9 +473,9 @@ Returns the pixel value for screen \fIscreen\fR.
This value is used by the underlying window system to refer to a color. It can be thought of as an index into the display hardware's color table, but the value is an arbitrary 32-bit value.
.PP
See also alloc().
-.SH "int QColor::red () const"
+.SH "int TQColor::red () const"
Returns the R (red) component of the RGB value.
-.SH "QRgb QColor::rgb () const"
+.SH "TQRgb TQColor::rgb () const"
Returns the RGB value.
.PP
The return type \fIQRgb\fR is equivalent to \fCunsigned\fR \fCint\fR.
@@ -483,9 +483,9 @@ The return type \fIQRgb\fR is equivalent to \fCunsigned\fR \fCint\fR.
For an invalid color, the alpha value of the returned color is unspecified.
.PP
See also setRgb(), hsv(), tqRed(), tqBlue(), tqGreen(), and isValid().
-.SH "void QColor::rgb ( int * r, int * g, int * b ) const"
+.SH "void TQColor::rgb ( int * r, int * g, int * b ) const"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. Use getRgb() instead
-.SH "void QColor::setHsv ( int h, int s, int v )"
+.SH "void TQColor::setHsv ( int h, int s, int v )"
Sets a HSV color value. \fIh\fR is the hue, \fIs\fR is the saturation and \fIv\fR is the value of the HSV color.
.PP
If \fIs\fR or \fIv\fR are not in the range 0-255, or \fIh\fR is < -1, the color is not changed.
@@ -496,7 +496,7 @@ See also hsv() and setRgb().
.PP
Examples:
.)l drawdemo/drawdemo.cpp, grapher/grapher.cpp, and progress/progress.cpp.
-.SH "void QColor::setNamedColor ( const QString & name )"
+.SH "void TQColor::setNamedColor ( const TQString & name )"
Sets the RGB value to \fIname\fR, which may be in one of these formats:
.TP
#RGB (each of R, G and B is a single hex digit)
@@ -510,11 +510,11 @@ Sets the RGB value to \fIname\fR, which may be in one of these formats:
A name from the X color database (rgb.txt) (e.g." steelblue" or "gainsboro"). These color names also work under Windows.
.PP
The color is invalid if \fIname\fR cannot be parsed.
-.SH "void QColor::setRgb ( int r, int g, int b )"
+.SH "void TQColor::setRgb ( int r, int g, int b )"
Sets the RGB value to \fIr\fR, \fIg\fR, \fIb\fR. The arguments, \fIr\fR, \fIg\fR and \fIb\fR must all be in the range 0..255. If any of them are outside the legal range, the color is not changed.
.PP
See also rgb() and setHsv().
-.SH "void QColor::setRgb ( QRgb rgb )"
+.SH "void TQColor::setRgb ( TQRgb rgb )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Sets the RGB value to \fIrgb\fR.
@@ -523,20 +523,20 @@ The type \fIQRgb\fR is equivalent to \fCunsigned\fR \fCint\fR.
.PP
See also rgb() and setHsv().
.SH RELATED FUNCTION DOCUMENTATION
-.SH "QDataStream & operator<< ( QDataStream & s, const QColor & c )"
+.SH "QDataStream & operator<< ( QDataStream & s, const TQColor & c )"
Writes a color object, \fIc\fR to the stream, \fIs\fR.
.PP
See also Format of the QDataStream operators.
-.SH "QDataStream & operator>> ( QDataStream & s, QColor & c )"
+.SH "QDataStream & operator>> ( QDataStream & s, TQColor & c )"
Reads a color object, \fIc\fR, from the stream, \fIs\fR.
.PP
See also Format of the QDataStream operators.
-.SH "int tqAlpha ( QRgb rgba )"
+.SH "int tqAlpha ( TQRgb rgba )"
Returns the alpha component of the RGBA quadruplet \fIrgba\fR.
-.SH "int tqBlue ( QRgb rgb )"
+.SH "int tqBlue ( TQRgb rgb )"
Returns the blue component of the RGB triplet \fIrgb\fR.
.PP
-See also tqRgb() and QColor::blue().
+See also tqRgb() and TQColor::blue().
.SH "int tqGray ( int r, int g, int b )"
Returns a gray value 0..255 from the (\fIr\fR, \fIg\fR, \fIb\fR) triplet.
.PP
@@ -545,21 +545,21 @@ The gray value is calculated using the formula (r*11 + g*16 + b*5)/32.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns a gray value 0..255 from the given \fIrgb\fR colour.
-.SH "int tqGreen ( QRgb rgb )"
+.SH "int tqGreen ( TQRgb rgb )"
Returns the green component of the RGB triplet \fIrgb\fR.
.PP
-See also tqRgb() and QColor::green().
-.SH "int tqRed ( QRgb rgb )"
+See also tqRgb() and TQColor::green().
+.SH "int tqRed ( TQRgb rgb )"
Returns the red component of the RGB triplet \fIrgb\fR.
.PP
-See also tqRgb() and QColor::red().
-.SH "QRgb tqRgb ( int r, int g, int b )"
+See also tqRgb() and TQColor::red().
+.SH "TQRgb tqRgb ( int r, int g, int b )"
Returns the RGB triplet \fI(r,g,b)\fR.
.PP
-The return type QRgb is equivalent to \fCunsigned\fR \fCint\fR.
+The return type TQRgb is equivalent to \fCunsigned\fR \fCint\fR.
.PP
See also tqRgba(), tqRed(), tqGreen(), and tqBlue().
-.SH "QRgb tqRgba ( int r, int g, int b, int a )"
+.SH "TQRgb tqRgba ( int r, int g, int b, int a )"
Returns the RGBA quadruplet \fI(r,g,b,a)\fR.
.PP
The return type QRgba is equivalent to \fCunsigned\fR \fCint\fR.