summaryrefslogtreecommitdiffstats
path: root/qtinterface/tqimage.h
diff options
context:
space:
mode:
Diffstat (limited to 'qtinterface/tqimage.h')
-rw-r--r--qtinterface/tqimage.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/qtinterface/tqimage.h b/qtinterface/tqimage.h
index f20d7ce..0e93bb1 100644
--- a/qtinterface/tqimage.h
+++ b/qtinterface/tqimage.h
@@ -38,7 +38,29 @@ Boston, MA 02110-1301, USA.
// Reimplement the QImage class
// For Qt4, some changes are needed
-#include <Qt/qimage.h>
+#include <tqt4/Qt/qimage.h>
+#include <Qt/qimagereader.h>
+#include <Qt/qimagewriter.h>
+
+class TQImageIO {
+public:
+ TQImageIO();
+ TQImageIO( QIODevice *ioDevice, const char *format );
+ TQImageIO( const QString &fileName, const char* format );
+ ~TQImageIO();
+
+ bool read();
+ bool write();
+
+ const QImage &image() const;
+ void setImage( const QImage & );
+
+protected:
+ QImageReader *m_imageReader;
+ QImageWriter *m_imageWriter;
+
+ QImage m_currentImage;
+};
#endif // USE_QT4