summaryrefslogtreecommitdiffstats
path: root/libk9copy/k9saveimage.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 23:37:00 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-27 23:37:00 +0000
commitb0e912c8b3d02a518fedda28c3180eb4794a7520 (patch)
tree07d344862562fab58cbe2df39d13d16f2e4d2bea /libk9copy/k9saveimage.cpp
parent4d695ec81fe4d4335ee82c7a9346ad9c9e144ecc (diff)
downloadk9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.tar.gz
k9copy-b0e912c8b3d02a518fedda28c3180eb4794a7520.zip
TQt4 convert k9copy
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k9copy@1233843 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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());