X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fremotepeer.cpp;h=3ac55d1578cf651bac6db0ce0c74f1e269eb600f;hb=b1862df754fe8272f3eb091a25396335b99eb7c6;hp=44033bd675c3ac7679cfe2487d906e2a1ac0d70a;hpb=34aa0106620836d360f2deebaa8d88ef52ba1a7e;p=quassel.git diff --git a/src/common/remotepeer.cpp b/src/common/remotepeer.cpp index 44033bd6..3ac55d15 100644 --- a/src/common/remotepeer.cpp +++ b/src/common/remotepeer.cpp @@ -23,6 +23,8 @@ #ifdef HAVE_SSL # include +#else +# include #endif #include "remotepeer.h" @@ -166,7 +168,11 @@ void RemotePeer::handle(const HeartBeat &heartBeat) void RemotePeer::handle(const HeartBeatReply &heartBeatReply) { _heartBeatCount = 0; +#if QT_VERSION >= 0x040900 emit lagUpdated(heartBeatReply.timestamp().msecsTo(QDateTime::currentDateTime().toUTC()) / 2); +#else + emit lagUpdated(heartBeatReply.timestamp().time().msecsTo(QDateTime::currentDateTime().toUTC().time()) / 2); +#endif }