summaryrefslogtreecommitdiffstats
path: root/libk9copy/k9saveimage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libk9copy/k9saveimage.cpp')
-rw-r--r--libk9copy/k9saveimage.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libk9copy/k9saveimage.cpp b/libk9copy/k9saveimage.cpp
index b919510..edc4162 100644
--- a/libk9copy/k9saveimage.cpp
+++ b/libk9copy/k9saveimage.cpp
@@ -13,10 +13,10 @@
#include "kdecmpeg2.h"
#include <stdio.h>
-#include <qimage.h>
+#include <tqimage.h>
#include <kstandarddirs.h>
-void k9SaveImage::drawImage(QImage *_image) {
+void k9SaveImage::drawImage(TQImage *_image) {
m_cpt++;
if (m_cpt ==20) {
m_image=*_image;
@@ -26,12 +26,12 @@ void k9SaveImage::drawImage(QImage *_image) {
k9SaveImage::k9SaveImage()
- : QObject(),QThread()
+ : TQObject(),TQThread()
{
m_tempFile= new KTempFile(locateLocal("tmp", "k9copy/k9p"), "");
m_tempFile->setAutoDelete(true);
m_decoder=new kDecMPEG2();
- connect(m_decoder, SIGNAL(pixmapReady(QImage *)), this, SLOT(drawImage(QImage *)));
+ connect(m_decoder, TQT_SIGNAL(pixmapReady(TQImage *)), this, TQT_SLOT(drawImage(TQImage *)));
}
@@ -73,7 +73,7 @@ void k9SaveImage::run() {
m_cpt=0;
m_decoder->decode(m_buffer ,m_buffer+m_size,0);
delete m_buffer;
- QString sFileName=m_tempFile->name();
+ TQString sFileName=m_tempFile->name();
m_image.save(sFileName,"PNG");
sFileName="\rINFOIMAGE:"+sFileName;
fprintf(stderr,sFileName.utf8());