diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-25 12:03:00 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-25 17:50:49 +0900 |
commit | 04d353236066b9aa85f6387fa05d3d37b75a7dd2 (patch) | |
tree | 3781200cbdb5db08e22cb07dd16c2dcdf6402b98 /kimgio/rgb.cpp | |
parent | b0f1961286230520573e2433b0ed4562718ce7a3 (diff) | |
download | tdelibs-04d353236066b9aa85f6387fa05d3d37b75a7dd2.tar.gz tdelibs-04d353236066b9aa85f6387fa05d3d37b75a7dd2.zip |
Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 4c0dae60b2fbc60996fc8f4bd29ee6219b869527)
Diffstat (limited to 'kimgio/rgb.cpp')
-rw-r--r-- | kimgio/rgb.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kimgio/rgb.cpp b/kimgio/rgb.cpp index cf1f2331a..bdda0959a 100644 --- a/kimgio/rgb.cpp +++ b/kimgio/rgb.cpp @@ -120,7 +120,7 @@ bool SGIImage::getRow(uchar *dest) bool SGIImage::readData(TQImage& img) { - QRgb *c; + TQRgb *c; TQ_UINT32 *start = m_starttab; TQByteArray lguard(m_xsize); uchar *line = (uchar *)lguard.data(); @@ -134,7 +134,7 @@ bool SGIImage::readData(TQImage& img) m_pos = m_data.begin() + *start++; if (!getRow(line)) return false; - c = (QRgb *)img.scanLine(m_ysize - y - 1); + c = (TQRgb *)img.scanLine(m_ysize - y - 1); for (x = 0; x < m_xsize; x++, c++) *c = tqRgb(line[x], line[x], line[x]); } @@ -148,7 +148,7 @@ bool SGIImage::readData(TQImage& img) m_pos = m_data.begin() + *start++; if (!getRow(line)) return false; - c = (QRgb *)img.scanLine(m_ysize - y - 1); + c = (TQRgb *)img.scanLine(m_ysize - y - 1); for (x = 0; x < m_xsize; x++, c++) *c = tqRgb(tqRed(*c), line[x], line[x]); } @@ -158,7 +158,7 @@ bool SGIImage::readData(TQImage& img) m_pos = m_data.begin() + *start++; if (!getRow(line)) return false; - c = (QRgb *)img.scanLine(m_ysize - y - 1); + c = (TQRgb *)img.scanLine(m_ysize - y - 1); for (x = 0; x < m_xsize; x++, c++) *c = tqRgb(tqRed(*c), tqGreen(*c), line[x]); } @@ -172,7 +172,7 @@ bool SGIImage::readData(TQImage& img) m_pos = m_data.begin() + *start++; if (!getRow(line)) return false; - c = (QRgb *)img.scanLine(m_ysize - y - 1); + c = (TQRgb *)img.scanLine(m_ysize - y - 1); for (x = 0; x < m_xsize; x++, c++) *c = tqRgba(tqRed(*c), tqGreen(*c), tqBlue(*c), line[x]); } @@ -394,12 +394,12 @@ bool SGIImage::scanData(const TQImage& img) TQCString bufguard(m_xsize); uchar *line = (uchar *)lineguard.data(); uchar *buf = (uchar *)bufguard.data(); - QRgb *c; + TQRgb *c; unsigned x, y; uint len; for (y = 0; y < m_ysize; y++) { - c = reinterpret_cast<QRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); + c = reinterpret_cast<TQRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); for (x = 0; x < m_xsize; x++) buf[x] = intensity(tqRed(*c++)); len = compact(line, buf); @@ -411,7 +411,7 @@ bool SGIImage::scanData(const TQImage& img) if (m_zsize != 2) { for (y = 0; y < m_ysize; y++) { - c = reinterpret_cast<QRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); + c = reinterpret_cast<TQRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); for (x = 0; x < m_xsize; x++) buf[x] = intensity(tqGreen(*c++)); len = compact(line, buf); @@ -419,7 +419,7 @@ bool SGIImage::scanData(const TQImage& img) } for (y = 0; y < m_ysize; y++) { - c = reinterpret_cast<QRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); + c = reinterpret_cast<TQRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); for (x = 0; x < m_xsize; x++) buf[x] = intensity(tqBlue(*c++)); len = compact(line, buf); @@ -431,7 +431,7 @@ bool SGIImage::scanData(const TQImage& img) } for (y = 0; y < m_ysize; y++) { - c = reinterpret_cast<QRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); + c = reinterpret_cast<TQRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); for (x = 0; x < m_xsize; x++) buf[x] = intensity(tqAlpha(*c++)); len = compact(line, buf); @@ -494,11 +494,11 @@ void SGIImage::writeVerbatim(const TQImage& img) kdDebug(399) << "writing verbatim data" << endl; writeHeader(); - QRgb *c; + TQRgb *c; unsigned x, y; for (y = 0; y < m_ysize; y++) { - c = reinterpret_cast<QRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); + c = reinterpret_cast<TQRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); for (x = 0; x < m_xsize; x++) m_stream << TQ_UINT8(tqRed(*c++)); } @@ -508,13 +508,13 @@ void SGIImage::writeVerbatim(const TQImage& img) if (m_zsize != 2) { for (y = 0; y < m_ysize; y++) { - c = reinterpret_cast<QRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); + c = reinterpret_cast<TQRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); for (x = 0; x < m_xsize; x++) m_stream << TQ_UINT8(tqGreen(*c++)); } for (y = 0; y < m_ysize; y++) { - c = reinterpret_cast<QRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); + c = reinterpret_cast<TQRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); for (x = 0; x < m_xsize; x++) m_stream << TQ_UINT8(tqBlue(*c++)); } @@ -524,7 +524,7 @@ void SGIImage::writeVerbatim(const TQImage& img) } for (y = 0; y < m_ysize; y++) { - c = reinterpret_cast<QRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); + c = reinterpret_cast<TQRgb *>(const_cast<TQImage&>(img).scanLine(m_ysize - y - 1)); for (x = 0; x < m_xsize; x++) m_stream << TQ_UINT8(tqAlpha(*c++)); } |