From ffe8a83e053396df448e9413828527613ca3bd46 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:46:43 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kimgio/rgb.h | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'kimgio/rgb.h') diff --git a/kimgio/rgb.h b/kimgio/rgb.h index 224d22cc8..cd0a897d9 100644 --- a/kimgio/rgb.h +++ b/kimgio/rgb.h @@ -11,37 +11,37 @@ #ifndef KIMG_RGB_H #define KIMG_RGB_H -#include -#include +#include +#include class QImage; class QImageIO; extern "C" { -void kimgio_rgb_read(QImageIO *); -void kimgio_rgb_write(QImageIO *); +void kimgio_rgb_read(TQImageIO *); +void kimgio_rgb_write(TQImageIO *); } -class RLEData : public QMemArray { +class RLEData : public TQMemArray { public: RLEData() {} RLEData(const uchar *d, uint l, uint o) : m_offset(o) { duplicate(d, l); } bool operator<(const RLEData&) const; - void write(QDataStream& s); - void print(QString) const; // TODO remove + void write(TQDataStream& s); + void print(TQString) const; // TODO remove uint offset() { return m_offset; } private: uint m_offset; }; -class RLEMap : public QMap { +class RLEMap : public TQMap { public: RLEMap() : m_counter(0), m_offset(0) {} uint insert(const uchar *d, uint l); - QPtrVector vector(); + TQPtrVector vector(); void setBaseOffset(uint o) { m_offset = o; } private: uint m_counter; @@ -51,11 +51,11 @@ private: class SGIImage { public: - SGIImage(QImageIO *); + SGIImage(TQImageIO *); ~SGIImage(); - bool readImage(QImage&); - bool writeImage(QImage&); + bool readImage(TQImage&); + bool writeImage(TQImage&); private: enum { NORMAL, DITHERED, SCREEN, COLORMAP }; // colormap @@ -77,18 +77,18 @@ private: Q_UINT32 *m_starttab; Q_UINT32 *m_lengthtab; QByteArray m_data; - QByteArray::Iterator m_pos; + TQByteArray::Iterator m_pos; RLEMap m_rlemap; - QPtrVector m_rlevector; + TQPtrVector m_rlevector; uint m_numrows; - bool readData(QImage&); + bool readData(TQImage&); bool getRow(uchar *dest); void writeHeader(); void writeRle(); - void writeVerbatim(const QImage&); - bool scanData(const QImage&); + void writeVerbatim(const TQImage&); + bool scanData(const TQImage&); uint compact(uchar *, uchar *); uchar intensity(uchar); }; -- cgit v1.2.1