From: Manuel Nickschas Date: Wed, 29 Jan 2014 20:54:25 +0000 (+0100) Subject: There won't ever be a Qt 4.9... X-Git-Tag: 0.9.3~7 X-Git-Url: https://git.quassel-irc.org/?a=commitdiff_plain;h=f732c3d5743d513329813b90f753b6a46a8fb197;hp=db899a1dc6b0a1a4cc13f73231f28db4259d9fc1;p=quassel.git There won't ever be a Qt 4.9... ... and this should actually have been a check for Qt 4.7+. --- diff --git a/src/common/remotepeer.cpp b/src/common/remotepeer.cpp index 3ac55d15..fad05b96 100644 --- a/src/common/remotepeer.cpp +++ b/src/common/remotepeer.cpp @@ -168,7 +168,7 @@ void RemotePeer::handle(const HeartBeat &heartBeat) void RemotePeer::handle(const HeartBeatReply &heartBeatReply) { _heartBeatCount = 0; -#if QT_VERSION >= 0x040900 +#if QT_VERSION >= 0x040700 emit lagUpdated(heartBeatReply.timestamp().msecsTo(QDateTime::currentDateTime().toUTC()) / 2); #else emit lagUpdated(heartBeatReply.timestamp().time().msecsTo(QDateTime::currentDateTime().toUTC().time()) / 2);