X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Flogger.h;h=910c555dc08232514c834481a95069bd2e4cc596;hp=ea5b01be57eee013e6295b3a727a0627ce62aeb7;hb=4259bc3c5b11164245535e011a69efa6937bb6a6;hpb=04315f46a16fc3627218377071e008b6b9744992 diff --git a/src/common/logger.h b/src/common/logger.h index ea5b01be..910c555d 100644 --- a/src/common/logger.h +++ b/src/common/logger.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2013 by the Quassel Project * + * Copyright (C) 2005-2015 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; }