summaryrefslogtreecommitdiffstats
path: root/libktorrent/torrent/speedestimater.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
commit1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch)
tree38559cd68cd4f63023fb5f6375def9db3b8b491e /libktorrent/torrent/speedestimater.cpp
parent894f94545727610df22c4f73911d62d58266f695 (diff)
downloadktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.tar.gz
ktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.zip
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
Diffstat (limited to 'libktorrent/torrent/speedestimater.cpp')
-rw-r--r--libktorrent/torrent/speedestimater.cpp12
1 files changed, 6 insertions, 6 deletions
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 <qpair.h>
-#include <qvaluelist.h>
+#include <tqpair.h>
+#include <tqvaluelist.h>
#include <util/log.h>
#include <util/timer.h>
#include "speedestimater.h"
@@ -29,14 +29,14 @@ namespace bt
class SpeedEstimater::SpeedEstimaterPriv
{
float rate;
- QValueList<QPair<Uint32,TimeStamp> > dlrate;
+ TQValueList<TQPair<Uint32,TimeStamp> > 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<QPair<Uint32,TimeStamp> >::iterator i = dlrate.begin();
+ TQValueList<TQPair<Uint32,TimeStamp> >::iterator i = dlrate.begin();
while (i != dlrate.end())
{
- QPair<Uint32,TimeStamp> & p = *i;
+ TQPair<Uint32,TimeStamp> & p = *i;
if (now - p.second > 3000)
{
i = dlrate.erase(i);