summaryrefslogtreecommitdiffstats
path: root/src/kernel/qpixmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/qpixmap.cpp')
-rw-r--r--src/kernel/qpixmap.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/kernel/qpixmap.cpp b/src/kernel/qpixmap.cpp
index 7dd6c0d77..6d802cfdd 100644
--- a/src/kernel/qpixmap.cpp
+++ b/src/kernel/qpixmap.cpp
@@ -258,7 +258,7 @@ TQPixmap::TQPixmap( const TQSize &size, int depth, Optimization optimization )
init( size.width(), size.height(), depth, FALSE, optimization );
}
-#ifndef QT_NO_IMAGEIO
+#ifndef TQT_NO_IMAGEIO
/*!
Constructs a pixmap from the file \a fileName. If the file does
not exist or is of an unknown format, the pixmap becomes a null
@@ -351,7 +351,7 @@ TQPixmap::TQPixmap( const TQByteArray & img_data )
init( 0, 0, 0, FALSE, defOptim );
loadFromData( img_data );
}
-#endif //QT_NO_IMAGEIO
+#endif //TQT_NO_IMAGEIO
/*!
Constructs a pixmap that is a copy of \a pixmap.
@@ -396,7 +396,7 @@ TQPixmap::~TQPixmap()
\sa TQMimeSourceFactory, TQImage::fromMimeSource(), TQImageDrag::decode()
*/
-#ifndef QT_NO_MIME
+#ifndef TQT_NO_MIME
TQPixmap TQPixmap::fromMimeSource( const TQString &abs_name )
{
const TQMimeSource *m = TQMimeSourceFactory::defaultFactory()->data( abs_name );
@@ -671,7 +671,7 @@ void TQPixmap::resize( int w, int h )
if(data->alphapm) {
data->alphapm->resize(w, h);
} else
-#elif defined(Q_WS_X11) && !defined(QT_NO_XFTFREETYPE)
+#elif defined(Q_WS_X11) && !defined(TQT_NO_XFTFREETYPE)
if (data->alphapm)
tqWarning("TQPixmap::resize: TODO: resize alpha data");
else
@@ -751,11 +751,11 @@ void TQPixmap::setMask( const TQBitmap &newmask )
#endif
return;
}
-#if defined(Q_WS_MAC) || (defined(Q_WS_X11) && !defined(QT_NO_XFTFREETYPE))
+#if defined(Q_WS_MAC) || (defined(Q_WS_X11) && !defined(TQT_NO_XFTFREETYPE))
// when setting the mask, we get rid of the alpha channel completely
delete data->alphapm;
data->alphapm = 0;
-#endif // Q_WS_X11 && !QT_NO_XFTFREETYPE
+#endif // Q_WS_X11 && !TQT_NO_XFTFREETYPE
delete data->mask;
TQBitmap* newmaskcopy;
@@ -779,7 +779,7 @@ void TQPixmap::setMask( const TQBitmap &newmask )
\sa mask()
*/
-#ifndef QT_NO_IMAGE_HEURISTIC_MASK
+#ifndef TQT_NO_IMAGE_HEURISTIC_MASK
/*!
Creates and returns a heuristic mask for this pixmap. It works by
selecting a color from one of the corners and then chipping away
@@ -808,7 +808,7 @@ TQBitmap TQPixmap::createHeuristicMask( bool clipTight ) const
return m;
}
#endif
-#ifndef QT_NO_IMAGEIO
+#ifndef TQT_NO_IMAGEIO
/*!
Returns a string that specifies the image format of the file \a
fileName, or 0 if the file cannot be read or if the format cannot
@@ -886,7 +886,7 @@ bool TQPixmap::load( const TQString &fileName, const char *format,
}
return load( fileName, format, conversion_flags );
}
-#endif //QT_NO_IMAGEIO
+#endif //TQT_NO_IMAGEIO
/*!
\overload
@@ -919,7 +919,7 @@ bool TQPixmap::convertFromImage( const TQImage &image, ColorMode mode )
return convertFromImage( image, conversion_flags );
}
-#ifndef QT_NO_IMAGEIO
+#ifndef TQT_NO_IMAGEIO
/*!
Loads a pixmap from the binary data in \a buf (\a len bytes).
Returns TRUE if successful; otherwise returns FALSE.
@@ -1061,7 +1061,7 @@ bool TQPixmap::doImageIO( TQImageIO* io, int quality ) const
return io->write();
}
-#endif //QT_NO_IMAGEIO
+#endif //TQT_NO_IMAGEIO
/*!
\fn int TQPixmap::serialNumber() const
@@ -1234,7 +1234,7 @@ TQPixmap TQPixmap::grabWidget( TQWidget * widget, int x, int y, int w, int h )
\sa xForm(), TQWMatrix
*/
-#ifndef QT_NO_PIXMAP_TRANSFORMATION
+#ifndef TQT_NO_PIXMAP_TRANSFORMATION
TQWMatrix TQPixmap::trueMatrix( const TQWMatrix &matrix, int w, int h )
{
const double dt = (double)0.;
@@ -1275,7 +1275,7 @@ TQWMatrix TQPixmap::trueMatrix( const TQWMatrix &matrix, int w, int h )
mat.setMatrix( matrix.m11(), matrix.m12(), matrix.m21(), matrix.m22(), -xmin, -ymin );
return mat;
}
-#endif // QT_NO_WMATRIX
+#endif // TQT_NO_WMATRIX
@@ -1284,7 +1284,7 @@ TQWMatrix TQPixmap::trueMatrix( const TQWMatrix &matrix, int w, int h )
/*****************************************************************************
TQPixmap stream functions
*****************************************************************************/
-#if !defined(QT_NO_DATASTREAM) && !defined(QT_NO_IMAGEIO)
+#if !defined(TQT_NO_DATASTREAM) && !defined(TQT_NO_IMAGEIO)
/*!
\relates TQPixmap
@@ -1319,7 +1319,7 @@ TQDataStream &operator>>( TQDataStream &s, TQPixmap &pixmap )
return s;
}
-#endif //QT_NO_DATASTREAM
+#endif //TQT_NO_DATASTREAM
@@ -1346,7 +1346,7 @@ TQDataStream &operator>>( TQDataStream &s, TQPixmap &pixmap )
line of the source data, \a sWidth and \a sHeight are the width and height of
the source data.
*/
-#ifndef QT_NO_PIXMAP_TRANSFORMATION
+#ifndef TQT_NO_PIXMAP_TRANSFORMATION
#undef IWX_MSB
#define IWX_MSB(b) if ( trigx < maxws && trigy < maxhs ) { \
if ( *(sptr+sbpl*(trigy>>16)+(trigx>>19)) & \
@@ -1507,4 +1507,4 @@ bool qt_xForm_helper( const TQWMatrix &trueMat, int xoffset,
#undef IWX_MSB
#undef IWX_LSB
#undef IWX_PIX
-#endif // QT_NO_PIXMAP_TRANSFORMATION
+#endif // TQT_NO_PIXMAP_TRANSFORMATION