X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Flogger.h;h=2caa5d39d5abe9287f95d2f354eb57de2f7bdbc8;hb=bc544f569faedea50c7715844a2261872796c683;hp=a986153475b18d2d088a7da7db9a49ce3e869450;hpb=9d54503555534a2c554f09a33df6afa33d6308ec;p=quassel.git diff --git a/src/common/logger.h b/src/common/logger.h index a9861534..2caa5d39 100644 --- a/src/common/logger.h +++ b/src/common/logger.h @@ -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; }