From b0e912c8b3d02a518fedda28c3180eb4794a7520 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 27 May 2011 23:37:00 +0000 Subject: 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 --- libk9copy/k9saveimage.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libk9copy/k9saveimage.cpp') 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 -#include +#include #include -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()); -- cgit v1.2.1