diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 20:34:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 20:34:15 +0000 |
commit | 1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch) | |
tree | 38559cd68cd4f63023fb5f6375def9db3b8b491e /libktorrent/util/timer.cpp | |
parent | 894f94545727610df22c4f73911d62d58266f695 (diff) | |
download | ktorrent-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.cpp | 6 |
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; |