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/torrent/peersourcemanager.cpp | |
parent | 4caf6f3c92ecc2c41a5a1fe425d4eecc35cfe0e9 (diff) | |
download | ktorrent-657dd888c8a6bdc820669c441d9e1647b2ed0be1.tar.gz ktorrent-657dd888c8a6bdc820669c441d9e1647b2ed0be1.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/torrent/peersourcemanager.cpp')
-rw-r--r-- | libktorrent/torrent/peersourcemanager.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/libktorrent/torrent/peersourcemanager.cpp b/libktorrent/torrent/peersourcemanager.cpp index a48ccb0..c85c144 100644 --- a/libktorrent/torrent/peersourcemanager.cpp +++ b/libktorrent/torrent/peersourcemanager.cpp @@ -65,7 +65,7 @@ namespace bt //load custom trackers loadCustomURLs(); - connect(&timer,TQT_SIGNAL(timeout()),this,TQT_SLOT(updateCurrentManually())); + connect(&timer,TQ_SIGNAL(timeout()),this,TQ_SLOT(updateCurrentManually())); } PeerSourceManager::~PeerSourceManager() @@ -85,21 +85,21 @@ namespace bt void PeerSourceManager::addTracker(Tracker* trk) { trackers.insert(trk->trackerURL(),trk); - connect(trk,TQT_SIGNAL(peersReady( kt::PeerSource* )), - pman,TQT_SLOT(peerSourceReady( kt::PeerSource* ))); + connect(trk,TQ_SIGNAL(peersReady( kt::PeerSource* )), + pman,TQ_SLOT(peerSourceReady( kt::PeerSource* ))); } void PeerSourceManager::addPeerSource(kt::PeerSource* ps) { additional.append(ps); - connect(ps,TQT_SIGNAL(peersReady( kt::PeerSource* )), - pman,TQT_SLOT(peerSourceReady( kt::PeerSource* ))); + connect(ps,TQ_SIGNAL(peersReady( kt::PeerSource* )), + pman,TQ_SLOT(peerSourceReady( kt::PeerSource* ))); } void PeerSourceManager::removePeerSource(kt::PeerSource* ps) { - disconnect(ps,TQT_SIGNAL(peersReady( kt::PeerSource* )), - pman,TQT_SLOT(peerSourceReady( kt::PeerSource* ))); + disconnect(ps,TQ_SIGNAL(peersReady( kt::PeerSource* )), + pman,TQ_SLOT(peerSourceReady( kt::PeerSource* ))); additional.remove(ps); } @@ -477,10 +477,10 @@ namespace bt if (curr) { - disconnect(curr,TQT_SIGNAL(requestFailed( const TQString& )), - this,TQT_SLOT(onTrackerError( const TQString& ))); - disconnect(curr,TQT_SIGNAL(requestOK()),this,TQT_SLOT(onTrackerOK())); - disconnect(curr,TQT_SIGNAL(requestPending()),this,TQT_SLOT(onTrackerRequestPending())); + disconnect(curr,TQ_SIGNAL(requestFailed( const TQString& )), + this,TQ_SLOT(onTrackerError( const TQString& ))); + disconnect(curr,TQ_SIGNAL(requestOK()),this,TQ_SLOT(onTrackerOK())); + disconnect(curr,TQ_SIGNAL(requestPending()),this,TQ_SLOT(onTrackerRequestPending())); curr = 0; } @@ -488,14 +488,14 @@ namespace bt if (curr) { Out(SYS_TRK|LOG_NOTICE) << "Switching to tracker " << trk->trackerURL() << endl; - TQObject::connect(curr,TQT_SIGNAL(requestFailed( const TQString& )), - this,TQT_SLOT(onTrackerError( const TQString& ))); + TQObject::connect(curr,TQ_SIGNAL(requestFailed( const TQString& )), + this,TQ_SLOT(onTrackerError( const TQString& ))); - TQObject::connect(curr,TQT_SIGNAL(requestOK()), - this,TQT_SLOT(onTrackerOK())); + TQObject::connect(curr,TQ_SIGNAL(requestOK()), + this,TQ_SLOT(onTrackerOK())); - TQObject::connect(curr,TQT_SIGNAL(requestPending()), - this,TQT_SLOT(onTrackerRequestPending())); + TQObject::connect(curr,TQ_SIGNAL(requestPending()), + this,TQ_SLOT(onTrackerRequestPending())); } } |