diff options
Diffstat (limited to 'ksquirrel/sq_downloader.cpp')
-rw-r--r-- | ksquirrel/sq_downloader.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ksquirrel/sq_downloader.cpp b/ksquirrel/sq_downloader.cpp index 290a1d8..07759dc 100644 --- a/ksquirrel/sq_downloader.cpp +++ b/ksquirrel/sq_downloader.cpp @@ -15,7 +15,7 @@ * * ***************************************************************************/ -#include <qfile.h> +#include <tqfile.h> #include <kio/job.h> #include <kfileitem.h> @@ -30,7 +30,7 @@ #define SQ_PREDOWNLOAD_SIZE 50 -SQ_Downloader::SQ_Downloader(QObject *parent, const char *name) : QObject(parent, name), job(0), m_error(false) +SQ_Downloader::SQ_Downloader(TQObject *tqparent, const char *name) : TQObject(tqparent, name), job(0), m_error(false) { tmp = new KTempFile; tmp->setAutoDelete(true); @@ -50,7 +50,7 @@ void SQ_Downloader::start(KFileItem *fi) mURL = fi->url(); emitPercents = false; - startTime = QTime::currentTime(); + startTime = TQTime::currentTime(); size = 0; totalSize = fi->size(); @@ -66,15 +66,15 @@ void SQ_Downloader::start(KFileItem *fi) continueDownload = false; - connect(job, SIGNAL(data(KIO::Job *, const QByteArray &)), this, SLOT(slotData(KIO::Job *, const QByteArray &))); - connect(job, SIGNAL(result(KIO::Job *)), this, SLOT(slotDataResult(KIO::Job *))); + connect(job, TQT_SIGNAL(data(KIO::Job *, const TQByteArray &)), this, TQT_SLOT(slotData(KIO::Job *, const TQByteArray &))); + connect(job, TQT_SIGNAL(result(KIO::Job *)), this, TQT_SLOT(slotDataResult(KIO::Job *))); } -void SQ_Downloader::slotData(KIO::Job *job, const QByteArray &ba) +void SQ_Downloader::slotData(KIO::Job *job, const TQByteArray &ba) { size += ba.size(); - QFile f(tmp->name()); + TQFile f(tmp->name()); if(f.open(IO_WriteOnly | IO_Append)) { @@ -82,7 +82,7 @@ void SQ_Downloader::slotData(KIO::Job *job, const QByteArray &ba) f.close(); } - if(emitPercents || startTime.msecsTo(QTime::currentTime()) > 1000) + if(emitPercents || startTime.msecsTo(TQTime::currentTime()) > 1000) { emit percents(size); emitPercents = true; @@ -129,7 +129,7 @@ void SQ_Downloader::slotDataResult(KIO::Job *cpjob) void SQ_Downloader::clean() { - QFile f(tmp->name()); + TQFile f(tmp->name()); if(f.open(IO_WriteOnly)) f.close(); |