diff options
Diffstat (limited to 'experimental/tqtinterface/qt4/src/kernel/tqimage.cpp')
-rw-r--r-- | experimental/tqtinterface/qt4/src/kernel/tqimage.cpp | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/experimental/tqtinterface/qt4/src/kernel/tqimage.cpp b/experimental/tqtinterface/qt4/src/kernel/tqimage.cpp index 0c97e646c..2a99fc929 100644 --- a/experimental/tqtinterface/qt4/src/kernel/tqimage.cpp +++ b/experimental/tqtinterface/qt4/src/kernel/tqimage.cpp @@ -657,9 +657,9 @@ static TQString fbname( const TQString &fileName ) // get file basename (sort of TQString s = fileName; if ( !s.isEmpty() ) { int i; - if ( (i = s.tqfindRev('/')) >= 0 ) + if ( (i = s.findRev('/')) >= 0 ) s = s.mid( i ); - if ( (i = s.tqfindRev('\\')) >= 0 ) + if ( (i = s.findRev('\\')) >= 0 ) s = s.mid( i ); TQRegExp r( TQString::tqfromLatin1("[a-zA-Z][a-zA-Z0-9_]*") ); int p = r.search( s ); @@ -705,14 +705,14 @@ static void swapPixel01( TQImage *image ) // 1-bpp: swap 0 and 1 pixels /*! \class TQImageIO tqimage.h - \brief The TQImageIO class tqcontains parameters for loading and + \brief The TQImageIO class contains parameters for loading and saving images. \ingroup images \ingroup graphics \ingroup io - TQImageIO tqcontains a TQIODevice object that is used for image data + TQImageIO contains a TQIODevice object that is used for image data I/O. The programmer can install new image file formats in addition to those that TQt provides. @@ -834,11 +834,11 @@ TQImageHandler::TQImageHandler( const char *f, const char *h, const TQCString& f : format(f), header(TQString::tqfromLatin1(h)) { text_mode = Untranslated; - if ( fl.tqcontains('t') ) + if ( fl.contains('t') ) text_mode = TranslateIn; - else if ( fl.tqcontains('T') ) + else if ( fl.contains('T') ) text_mode = TranslateInOut; - obsolete = fl.tqcontains('O'); + obsolete = fl.contains('O'); read_image = r; write_image = w; } @@ -1328,7 +1328,7 @@ TQStrList TQImageIO::inputFormats() while ( p ) { if ( p->read_image && !p->obsolete - && !result.tqcontains(p->format) ) + && !result.contains(p->format) ) { result.inSort(p->format); } @@ -1356,7 +1356,7 @@ TQStrList TQImageIO::outputFormats() while ( p ) { if ( p->write_image && !p->obsolete - && !result.tqcontains(p->format) ) + && !result.contains(p->format) ) { result.inSort(p->format); } @@ -2684,15 +2684,15 @@ static bool read_xpm_string( TQCString &buf, TQIODevice *d, static int nextColorSpec(const TQCString & buf) { - int i = buf.tqfind(" c "); + int i = buf.find(" c "); if (i < 0) - i = buf.tqfind(" g "); + i = buf.find(" g "); if (i < 0) - i = buf.tqfind(" g4 "); + i = buf.find(" g4 "); if (i < 0) - i = buf.tqfind(" m "); + i = buf.find(" m "); if (i < 0) - i = buf.tqfind(" s "); + i = buf.find(" s "); return i; } @@ -2717,7 +2717,7 @@ static void read_xpm_image_or_array( TQImageIO * iio, const char * const * sourc d = iio ? iio->ioDevice() : 0; d->readLine( buf.data(), buf.size() ); // "/* XPM */" TQRegExp r( TQString::tqfromLatin1("/\\*.XPM.\\*/") ); - if ( buf.tqfind(r) == -1 ) + if ( buf.find(r) == -1 ) return; // bad magic } else if ( !source ) { return; @@ -2909,7 +2909,7 @@ static void write_xpm_image( TQImageIO * iio ) TQRgb * yp = (TQRgb *)image.scanLine( y ); for( x=0; x<w; x++ ) { TQRgb color = *(yp + x); - if ( !colorMap.tqcontains(color) ) + if ( !colorMap.contains(color) ) colorMap.insert( color, ncolors++ ); } } @@ -3159,7 +3159,7 @@ TQImage TQImage::createHeuristicMask( bool clipTight ) const { *(image.scanLine(y) + x) = 19; \endcode - 32-bpp images ignore the color table; instead, each pixel tqcontains + 32-bpp images ignore the color table; instead, each pixel contains the RGB triplet. 24 bits contain the RGB value; the most significant byte is reserved for the alpha buffer. @@ -3232,7 +3232,7 @@ TQImage TQImage::createHeuristicMask( bool clipTight ) const { Color/Mono preference (ignored for TQBitmap) \value AutoColor (default) - If the image has \link - TQImage::depth() depth\endlink 1 and tqcontains only + TQImage::depth() depth\endlink 1 and contains only black and white pixels, the pixmap becomes monochrome. \value ColorOnly The pixmap is dithered/converted to the \link TQPixmap::defaultDepth() native display depth\endlink. @@ -4080,7 +4080,7 @@ void TQImage::fill( uint pixel ) If the depth is not 32, the argument \a invertAlpha has no meaning. - Note that inverting an 8-bit image means to tqreplace all pixels + Note that inverting an 8-bit image means to replace all pixels using color index \e i with a pixel using color index 255 minus \e i. Similarly for a 1-bit image. The color table is not changed. @@ -4216,7 +4216,7 @@ void TQImage::setNumColors( int numColors ) it. The default setting is disabled. An 8-bpp image has 8-bit pixels. A pixel is an index into the - \link color() color table\endlink, which tqcontains 32-bit color + \link color() color table\endlink, which contains 32-bit color values. In a 32-bpp image, the 32-bit pixels are the color values. This 32-bit value is encoded as follows: The lower 24 bits are @@ -5969,7 +5969,7 @@ TQImage TQImage::scaleHeight( int h ) const The transformation \a matrix is internally adjusted to compensate for unwanted translation, i.e. xForm() returns the smallest image - that tqcontains all the transformed points of the original image. + that contains all the transformed points of the original image. \sa scale() TQPixmap::xForm() TQPixmap::trueMatrix() TQWMatrix */ @@ -6697,9 +6697,9 @@ static TQString fbname( const TQString &fileName ) // get file basename (sort of TQString s = fileName; if ( !s.isEmpty() ) { int i; - if ( (i = s.tqfindRev('/')) >= 0 ) + if ( (i = s.findRev('/')) >= 0 ) s = s.mid( i ); - if ( (i = s.tqfindRev('\\')) >= 0 ) + if ( (i = s.findRev('\\')) >= 0 ) s = s.mid( i ); TQRegExp r( TQString::tqfromLatin1("[a-zA-Z][a-zA-Z0-9_]*") ); int p = r.search( s ); @@ -6745,14 +6745,14 @@ static void swapPixel01( TQImage *image ) // 1-bpp: swap 0 and 1 pixels /*! \class TQImageIO tqimage.h - \brief The TQImageIO class tqcontains parameters for loading and + \brief The TQImageIO class contains parameters for loading and saving images. \ingroup images \ingroup graphics \ingroup io - TQImageIO tqcontains a TQIODevice object that is used for image data + TQImageIO contains a TQIODevice object that is used for image data I/O. The programmer can install new image file formats in addition to those that TQt provides. @@ -6871,11 +6871,11 @@ TQImageHandler::TQImageHandler( const char *f, const char *h, const TQCString& f : format(f), header(TQString::tqfromLatin1(h)) { text_mode = Untranslated; - if ( fl.tqcontains('t') ) + if ( fl.contains('t') ) text_mode = TranslateIn; - else if ( fl.tqcontains('T') ) + else if ( fl.contains('T') ) text_mode = TranslateInOut; - obsolete = fl.tqcontains('O'); + obsolete = fl.contains('O'); read_image = r; write_image = w; } @@ -7365,7 +7365,7 @@ TQStrList TQImageIO::inputFormats() while ( p ) { if ( p->read_image && !p->obsolete - && !result.tqcontains(p->format) ) + && !result.contains(p->format) ) { result.inSort(p->format); } @@ -7393,7 +7393,7 @@ TQStrList TQImageIO::outputFormats() while ( p ) { if ( p->write_image && !p->obsolete - && !result.tqcontains(p->format) ) + && !result.contains(p->format) ) { result.inSort(p->format); } @@ -8722,15 +8722,15 @@ static bool read_xpm_string( TQCString &buf, TQIODevice *d, static int nextColorSpec(const TQCString & buf) { - int i = buf.tqfind(" c "); + int i = buf.find(" c "); if (i < 0) - i = buf.tqfind(" g "); + i = buf.find(" g "); if (i < 0) - i = buf.tqfind(" g4 "); + i = buf.find(" g4 "); if (i < 0) - i = buf.tqfind(" m "); + i = buf.find(" m "); if (i < 0) - i = buf.tqfind(" s "); + i = buf.find(" s "); return i; } @@ -8755,7 +8755,7 @@ static void read_xpm_image_or_array( TQImageIO * iio, const char * const * sourc d = iio ? iio->ioDevice() : 0; d->readLine( buf.data(), buf.size() ); // "/* XPM */" TQRegExp r( TQString::tqfromLatin1("/\\*.XPM.\\*/") ); - if ( buf.tqfind(r) == -1 ) + if ( buf.find(r) == -1 ) return; // bad magic } else if ( !source ) { return; @@ -8947,7 +8947,7 @@ static void write_xpm_image( TQImageIO * iio ) TQRgb * yp = (TQRgb *)image.scanLine( y ); for( x=0; x<w; x++ ) { TQRgb color = *(yp + x); - if ( !colorMap.tqcontains(color) ) + if ( !colorMap.contains(color) ) colorMap.insert( color, ncolors++ ); } } @@ -9488,7 +9488,7 @@ TQValueList<TQImageTextKeyLang> TQImage::textList() const void TQImage::setText(const char* key, const char* lang, const TQString& s) { TQImageTextKeyLang x(key,lang); - misc().text_lang.tqreplace(x,s); + misc().text_lang.replace(x,s); } #endif // TQT_NO_IMAGE_TEXT |