diff --git a/ground/gcs/src/app/main.cpp b/ground/gcs/src/app/main.cpp index ac97845f2..c8260c953 100644 --- a/ground/gcs/src/app/main.cpp +++ b/ground/gcs/src/app/main.cpp @@ -285,9 +285,11 @@ void mainMessageOutput(QtMsgType type, const QMessageLogContext &context, const case QtDebugMsg: out << "DBG: "; break; +#if (QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)) case QtInfoMsg: out << "INF: "; break; +#endif case QtWarningMsg: out << "WRN: "; break; diff --git a/ground/gcs/src/plugins/debuggadget/debuggadgetwidget.cpp b/ground/gcs/src/plugins/debuggadget/debuggadgetwidget.cpp index 71060e9fb..11c417d78 100644 --- a/ground/gcs/src/plugins/debuggadget/debuggadgetwidget.cpp +++ b/ground/gcs/src/plugins/debuggadget/debuggadgetwidget.cpp @@ -52,10 +52,12 @@ void DebugGadgetWidget::customMessageHandler(QtMsgType type, const QMessageLogCo txt = QString("Debug: %1").arg(msg); color = Qt::black; break; +#if (QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)) case QtInfoMsg: txt = QString("Info: %1").arg(msg); color = Qt::blue; break; +#endif case QtWarningMsg: txt = QString("Warning: %1").arg(msg); color = Qt::red; diff --git a/ground/gcs/src/plugins/hitl/aerosimrc/src/qdebughandler.cpp b/ground/gcs/src/plugins/hitl/aerosimrc/src/qdebughandler.cpp index 6adcd4d6b..3c3ad4c67 100644 --- a/ground/gcs/src/plugins/hitl/aerosimrc/src/qdebughandler.cpp +++ b/ground/gcs/src/plugins/hitl/aerosimrc/src/qdebughandler.cpp @@ -37,9 +37,11 @@ void myQDebugHandler(QtMsgType type, const QMessageLogContext &context, const QS case QtDebugMsg: txt = QString("Debug: %1").arg(msg); break; +#if (QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)) case QtInfoMsg: txt = QString("Info: %1").arg(msg); break; +#endif case QtWarningMsg: txt = QString("Warning: %1").arg(msg); break;