X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Feventstringifier.cpp;h=c9c35ae1ccd0780b70b183066e6e14bf92e453b6;hp=baa3933b3c911437a63616533899f8856e440c3d;hb=0dfaab93892aee333f7b838658ef85b9ff270ba7;hpb=9d54503555534a2c554f09a33df6afa33d6308ec diff --git a/src/core/eventstringifier.cpp b/src/core/eventstringifier.cpp index baa3933b..c9c35ae1 100644 --- a/src/core/eventstringifier.cpp +++ b/src/core/eventstringifier.cpp @@ -733,7 +733,12 @@ void EventStringifier::handleCtcpPing(CtcpEvent *e) if (e->ctcpType() == CtcpEvent::Query) defaultHandler(e->ctcpCmd(), e); else { +#if QT_VERSION >= 0x040700 + displayMsg(e, Message::Server, tr("Received CTCP-PING answer from %1 with %2 milliseconds round trip time") + .arg(nickFromMask(e->prefix())).arg(QDateTime::fromMSecsSinceEpoch(e->param().toULongLong()).msecsTo(e->timestamp()))); +#else displayMsg(e, Message::Server, tr("Received CTCP-PING answer from %1 with %2 seconds round trip time") .arg(nickFromMask(e->prefix())).arg(QDateTime::fromTime_t(e->param().toInt()).secsTo(e->timestamp()))); +#endif } }