summaryrefslogtreecommitdiffstats
path: root/kimgio/xview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kimgio/xview.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kimgio/xview.cpp')
-rw-r--r--kimgio/xview.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kimgio/xview.cpp b/kimgio/xview.cpp
index d61a60fde..746ddc6bc 100644
--- a/kimgio/xview.cpp
+++ b/kimgio/xview.cpp
@@ -8,7 +8,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#include <qimage.h>
+#include <tqimage.h>
#include <kdelibs_export.h>
@@ -19,12 +19,12 @@
static const int b_255_3[]= {0,85,170,255}, // index*255/3
rg_255_7[]={0,36,72,109,145,182,218,255}; // index *255/7
-KDE_EXPORT void kimgio_xv_read( QImageIO *_imageio )
+KDE_EXPORT void kimgio_xv_read( TQImageIO *_imageio )
{
int x=-1;
int y=-1;
int maxval=-1;
- QIODevice *iodev = _imageio->ioDevice();
+ TQIODevice *iodev = _imageio->ioDevice();
char str[ BUFSIZE ];
@@ -69,7 +69,7 @@ KDE_EXPORT void kimgio_xv_read( QImageIO *_imageio )
}
// Create the image
- QImage image( x, y, 8, maxval + 1, QImage::BigEndian );
+ TQImage image( x, y, 8, maxval + 1, TQImage::BigEndian );
if( image.isNull()) {
free(block);
return;
@@ -100,13 +100,13 @@ KDE_EXPORT void kimgio_xv_read( QImageIO *_imageio )
return;
}
-KDE_EXPORT void kimgio_xv_write( QImageIO *imageio )
+KDE_EXPORT void kimgio_xv_write( TQImageIO *imageio )
{
- QIODevice& f = *( imageio->ioDevice() );
+ TQIODevice& f = *( imageio->ioDevice() );
// Removed "f.open(...)" and "f.close()" (tanghus)
- const QImage& image = imageio->image();
+ const TQImage& image = imageio->image();
int w = image.width(), h = image.height();
char str[ 1024 ];