diff options
author | Dominik Holland <dominik.holland@pelagicore.com> | 2015-08-03 12:54:05 +0200 |
---|---|---|
committer | Dominik Holland <dominik.holland@pelagicore.com> | 2015-08-03 12:54:05 +0200 |
commit | b981a37047f7a4dbefe46186f2b7869ac06cdb33 (patch) | |
tree | f4c6eb1196bd97b1257a8f274eedb77f329ec8b8 /src/geniviextras/qdltregistration.cpp | |
parent | fd2f7ab1a7b5500974796b31795fac2b16ccf597 (diff) |
Also support QtInfoMsg when using a Qt version >= 5.5
Diffstat (limited to 'src/geniviextras/qdltregistration.cpp')
-rw-r--r-- | src/geniviextras/qdltregistration.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/geniviextras/qdltregistration.cpp b/src/geniviextras/qdltregistration.cpp index ee785c7..672ab42 100644 --- a/src/geniviextras/qdltregistration.cpp +++ b/src/geniviextras/qdltregistration.cpp @@ -120,9 +120,12 @@ void QDltRegistration::messageHandler(QtMsgType msgTypes, const QMessageLogConte switch (msgTypes) { case QtDebugMsg: logLevel = DLT_LOG_DEBUG; break; - case QtWarningMsg: logLevel = DLT_LOG_INFO; break; + case QtWarningMsg: logLevel = DLT_LOG_WARN; break; case QtCriticalMsg: logLevel = DLT_LOG_ERROR; break; case QtFatalMsg: logLevel = DLT_LOG_FATAL; break; +#if QT_VERSION >= 0x050500 + case QtInfoMsg: logLevel = DLT_LOG_INFO; break; +#endif } DLT_LOG(*dltCtx, logLevel, DLT_STRING(qPrintable(qFormatLogMessage(msgTypes, msgCtx, msg)))); |