summaryrefslogtreecommitdiffstats
path: root/src/kernel/qpngio.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-10-17 19:46:30 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-10-17 19:46:30 +0900
commit69d87202cb139ffe9e4b3ce92e434523b7b09b64 (patch)
tree7b133311a4d5e5394f2612dced305f815c04847b /src/kernel/qpngio.cpp
parente07baa10b7b8e7105e02a621efadac67216c61ed (diff)
downloadtqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.tar.gz
tqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.zip
QT_NO_* -> TQT_NO_* renaming.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/kernel/qpngio.cpp')
-rw-r--r--src/kernel/qpngio.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/kernel/qpngio.cpp b/src/kernel/qpngio.cpp
index d391d5c4c..8033030b0 100644
--- a/src/kernel/qpngio.cpp
+++ b/src/kernel/qpngio.cpp
@@ -40,7 +40,7 @@
#include "ntqpngio.h"
-#ifndef QT_NO_IMAGEIO_PNG
+#ifndef TQT_NO_IMAGEIO_PNG
#include "ntqasyncimageio.h"
#include "ntqiodevice.h"
@@ -411,7 +411,7 @@ png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)
image.setDotsPerMeterX(png_get_x_pixels_per_meter(png_ptr,info_ptr));
image.setDotsPerMeterY(png_get_y_pixels_per_meter(png_ptr,info_ptr));
-#ifndef QT_NO_IMAGE_TEXT
+#ifndef TQT_NO_IMAGE_TEXT
png_textp text_ptr;
int num_text=0;
png_get_text(png_ptr,info_ptr,&text_ptr,&num_text);
@@ -484,7 +484,7 @@ void TQPNGImageWriter::setGamma(float g)
}
-#ifndef QT_NO_IMAGE_TEXT
+#ifndef TQT_NO_IMAGE_TEXT
static void set_text(const TQImage& image, png_structp png_ptr, png_infop info_ptr, bool short_not_long)
{
TQValueList<TQImageTextKeyLang> keys = image.textList();
@@ -684,14 +684,14 @@ should be able to comment this out.
PNG_RESOLUTION_METER);
}
-#ifndef QT_NO_IMAGE_TEXT
+#ifndef TQT_NO_IMAGE_TEXT
// Write short texts early.
set_text(image,png_ptr,info_ptr,TRUE);
#endif
png_write_info(png_ptr, info_ptr);
-#ifndef QT_NO_IMAGE_TEXT
+#ifndef TQT_NO_IMAGE_TEXT
// Write long texts later.
set_text(image,png_ptr,info_ptr,FALSE);
#endif
@@ -935,7 +935,7 @@ bool TQPNGImagePacker::packImage(const TQImage& img)
}
-#ifndef QT_NO_ASYNC_IMAGE_IO
+#ifndef TQT_NO_ASYNC_IMAGE_IO
class TQPNGFormat : public TQImageFormat {
public:
@@ -1225,7 +1225,7 @@ void TQPNGFormat::end(png_structp png, png_infop info)
image->setOffset(TQPoint(offx,offy));
image->setDotsPerMeterX(png_get_x_pixels_per_meter(png,info));
image->setDotsPerMeterY(png_get_y_pixels_per_meter(png,info));
-#ifndef QT_NO_IMAGE_TEXT
+#ifndef TQT_NO_IMAGE_TEXT
png_textp text_ptr;
int num_text=0;
png_get_text(png,info,&text_ptr,&num_text);
@@ -1248,7 +1248,7 @@ void TQPNGFormat::end(png_structp png, png_infop info)
#ifdef PNG_USER_CHUNKS_SUPPORTED
/*
-#ifndef QT_NO_IMAGE_TEXT
+#ifndef TQT_NO_IMAGE_TEXT
static bool skip(png_uint_32& max, png_bytep& data)
{
while (*data) {
@@ -1292,7 +1292,7 @@ int TQPNGFormat::user_chunk(png_structp png,
Q_UNUSED( length )
#endif
-#ifndef QT_NO_IMAGE_TEXT
+#ifndef TQT_NO_IMAGE_TEXT
/*
libpng now supports this chunk.
@@ -1328,12 +1328,12 @@ int TQPNGFormat::user_chunk(png_structp png,
static TQPNGFormatType* globalPngFormatTypeObject = 0;
-#endif // QT_NO_ASYNC_IMAGE_IO
+#endif // TQT_NO_ASYNC_IMAGE_IO
static bool done = FALSE;
void qCleanupPngIO()
{
-#ifndef QT_NO_ASYNC_IMAGE_IO
+#ifndef TQT_NO_ASYNC_IMAGE_IO
if ( globalPngFormatTypeObject ) {
delete globalPngFormatTypeObject;
globalPngFormatTypeObject = 0;
@@ -1348,7 +1348,7 @@ void qInitPngIO()
done = TRUE;
TQImageIO::defineIOHandler( "PNG", "^.PNG\r", 0, read_png_image,
write_png_image);
-#ifndef QT_NO_ASYNC_IMAGE_IO
+#ifndef TQT_NO_ASYNC_IMAGE_IO
globalPngFormatTypeObject = new TQPNGFormatType;
#endif
tqAddPostRoutine( qCleanupPngIO );
@@ -1361,4 +1361,4 @@ void qt_zlib_compression_hack()
uncompress(0,0,0,0);
}
-#endif // QT_NO_IMAGEIO_PNG
+#endif // TQT_NO_IMAGEIO_PNG