+#else
+void Logger::logMessage(QtMsgType type, const QMessageLogContext &context, const QString &msg)
+{
+ Q_UNUSED(context)
+
+ switch (type) {
+ case QtDebugMsg:
+ Logger(Quassel::DebugLevel) << msg.toLocal8Bit().constData();
+ break;
+#if QT_VERSION >= 0x050500
+ case QtInfoMsg:
+ Logger(Quassel::InfoLevel) << msg.toLocal8Bit().constData();
+ break;
+#endif
+ case QtWarningMsg:
+ Logger(Quassel::WarningLevel) << msg.toLocal8Bit().constData();
+ break;
+ case QtCriticalMsg:
+ Logger(Quassel::ErrorLevel) << msg.toLocal8Bit().constData();
+ break;
+ case QtFatalMsg:
+ Logger(Quassel::ErrorLevel) << msg.toLocal8Bit().constData();
+ Quassel::logFatalMessage(msg.toLocal8Bit().constData());
+ return;
+ }
+}
+#endif