X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Flogger.h;h=33375fefb85b6426901b77a4fd958ade3fa6d65d;hp=a986153475b18d2d088a7da7db9a49ce3e869450;hb=0dbec2cfc937857d66a9645249f876f1e6b3f05e;hpb=9d54503555534a2c554f09a33df6afa33d6308ec diff --git a/src/common/logger.h b/src/common/logger.h index a9861534..33375fef 100644 --- a/src/common/logger.h +++ b/src/common/logger.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2014 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -33,7 +33,11 @@ public: inline Logger(Quassel::LogLevel level) : _stream(&_buffer, QIODevice::WriteOnly), _logLevel(level) {} ~Logger(); +#if QT_VERSION < 0x050000 static void logMessage(QtMsgType type, const char *msg); +#else + static void logMessage(QtMsgType, const QMessageLogContext&, const QString&); +#endif template inline Logger &operator<<(const T &value) { _stream << value << " "; return *this; }