summaryrefslogtreecommitdiffstats
path: root/libktorrent/util/timer.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/util/timer.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/util/timer.cpp')
-rw-r--r--libktorrent/util/timer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libktorrent/util/timer.cpp b/libktorrent/util/timer.cpp
index c06b728..a35ffc0 100644
--- a/libktorrent/util/timer.cpp
+++ b/libktorrent/util/timer.cpp
@@ -25,7 +25,7 @@ namespace bt
Timer::Timer() : elapsed(0)
{
- last = QTime::currentTime();
+ last = TQTime::currentTime();
}
Timer::Timer(const Timer & t) : last(t.last),elapsed(t.elapsed)
@@ -37,7 +37,7 @@ namespace bt
void Timer::update()
{
- QTime now = QTime::currentTime();
+ TQTime now = TQTime::currentTime();
int d = last.msecsTo(now);
if (d < 0)
@@ -48,7 +48,7 @@ namespace bt
Uint32 Timer::getElapsedSinceUpdate() const
{
- QTime now = QTime::currentTime();
+ TQTime now = TQTime::currentTime();
int d = last.msecsTo(now);
if (d < 0)
d = 0;