From 1c1403293485f35fd53db45aaa77a01cdd9627e7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 28 Jun 2011 20:34:15 +0000 Subject: TQt4 port ktorrent This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1238733 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libktorrent/torrent/speedestimater.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libktorrent/torrent/speedestimater.cpp') diff --git a/libktorrent/torrent/speedestimater.cpp b/libktorrent/torrent/speedestimater.cpp index f12b5ac..a0b67da 100644 --- a/libktorrent/torrent/speedestimater.cpp +++ b/libktorrent/torrent/speedestimater.cpp @@ -17,8 +17,8 @@ * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#include -#include +#include +#include #include #include #include "speedestimater.h" @@ -29,14 +29,14 @@ namespace bt class SpeedEstimater::SpeedEstimaterPriv { float rate; - QValueList > dlrate; + TQValueList > dlrate; public: SpeedEstimaterPriv() : rate(0) {} ~SpeedEstimaterPriv() {} void data(Uint32 bytes) { - dlrate.append(qMakePair(bytes,GetCurrentTime())); + dlrate.append(tqMakePair(bytes,GetCurrentTime())); } void update() @@ -44,10 +44,10 @@ namespace bt TimeStamp now = GetCurrentTime(); Uint32 bytes = 0,oldest = now; - QValueList >::iterator i = dlrate.begin(); + TQValueList >::iterator i = dlrate.begin(); while (i != dlrate.end()) { - QPair & p = *i; + TQPair & p = *i; if (now - p.second > 3000) { i = dlrate.erase(i); -- cgit v1.2.1