diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-01 17:47:34 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-01 20:24:02 +0900 |
| commit | 657dd888c8a6bdc820669c441d9e1647b2ed0be1 (patch) | |
| tree | 514013ec3bf94a3dc193789fbddb80ca48d09805 /libktorrent/util | |
| parent | 4caf6f3c92ecc2c41a5a1fe425d4eecc35cfe0e9 (diff) | |
| download | ktorrent-657dd888.tar.gz ktorrent-657dd888.zip | |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 27fd576acbb8b9453dadd7d1ae949396eef8fc12)
Diffstat (limited to 'libktorrent/util')
| -rw-r--r-- | libktorrent/util/autorotatelogjob.cpp | 4 | ||||
| -rw-r--r-- | libktorrent/util/httprequest.cpp | 10 | ||||
| -rw-r--r-- | libktorrent/util/waitjob.cpp | 6 |
3 files changed, 10 insertions, 10 deletions
diff --git a/libktorrent/util/autorotatelogjob.cpp b/libktorrent/util/autorotatelogjob.cpp index dd1424b..30752a4 100644 --- a/libktorrent/util/autorotatelogjob.cpp +++ b/libktorrent/util/autorotatelogjob.cpp @@ -51,7 +51,7 @@ namespace bt if (bt::Exists(prev)) // if file exists start the move job { TDEIO::Job* sj = TDEIO::file_move(KURL::fromPathOrURL(prev),KURL::fromPathOrURL(curr),-1,true,false,false); - connect(sj,TQT_SIGNAL(result(TDEIO::Job*)),this,TQT_SLOT(moveJobDone(TDEIO::Job* ))); + connect(sj,TQ_SIGNAL(result(TDEIO::Job*)),this,TQ_SLOT(moveJobDone(TDEIO::Job* ))); return; } else @@ -65,7 +65,7 @@ namespace bt // move current log to 1 and zip it bt::Move(file,file + "-1",true); TDEIO::Job* sj = TDEIO::file_move(KURL::fromPathOrURL(file),KURL::fromPathOrURL(file + "-1"),-1,true,false,false); - connect(sj,TQT_SIGNAL(result(TDEIO::Job*)),this,TQT_SLOT(moveJobDone(TDEIO::Job* ))); + connect(sj,TQ_SIGNAL(result(TDEIO::Job*)),this,TQ_SLOT(moveJobDone(TDEIO::Job* ))); } else { diff --git a/libktorrent/util/httprequest.cpp b/libktorrent/util/httprequest.cpp index 4c869a5..ff40e4c 100644 --- a/libktorrent/util/httprequest.cpp +++ b/libktorrent/util/httprequest.cpp @@ -34,11 +34,11 @@ namespace bt sock->enableWrite(true); sock->setTimeout(30000); sock->setBlocking(false); - connect(sock,TQT_SIGNAL(readyRead()),this,TQT_SLOT(onReadyRead())); - connect(sock,TQT_SIGNAL(gotError(int)),this,TQT_SLOT(onError(int ))); - connect(sock,TQT_SIGNAL(timedOut()),this,TQT_SLOT(onTimeout())); - connect(sock,TQT_SIGNAL(connected(const KResolverEntry&)), - this, TQT_SLOT(onConnect( const KResolverEntry& ))); + connect(sock,TQ_SIGNAL(readyRead()),this,TQ_SLOT(onReadyRead())); + connect(sock,TQ_SIGNAL(gotError(int)),this,TQ_SLOT(onError(int ))); + connect(sock,TQ_SIGNAL(timedOut()),this,TQ_SLOT(onTimeout())); + connect(sock,TQ_SIGNAL(connected(const KResolverEntry&)), + this, TQ_SLOT(onConnect( const KResolverEntry& ))); } diff --git a/libktorrent/util/waitjob.cpp b/libktorrent/util/waitjob.cpp index e04369e..d236b6d 100644 --- a/libktorrent/util/waitjob.cpp +++ b/libktorrent/util/waitjob.cpp @@ -27,7 +27,7 @@ namespace bt WaitJob::WaitJob(Uint32 millis) : TDEIO::Job(false) { - connect(&timer,TQT_SIGNAL(timeout()),this,TQT_SLOT(timerDone())); + connect(&timer,TQ_SIGNAL(timeout()),this,TQ_SLOT(timerDone())); timer.start(millis,true); } @@ -51,8 +51,8 @@ namespace bt void WaitJob::addExitOperation(kt::ExitOperation* op) { exit_ops.append(op); - connect(op,TQT_SIGNAL(operationFinished( kt::ExitOperation* )), - this,TQT_SLOT(operationFinished( kt::ExitOperation* ))); + connect(op,TQ_SIGNAL(operationFinished( kt::ExitOperation* )), + this,TQ_SLOT(operationFinished( kt::ExitOperation* ))); } void WaitJob::operationFinished(kt::ExitOperation* op) |
