1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

LP-2 make some of the code changes backward compatible with Qt 5.4.1

This commit is contained in:
Philippe Renon 2015-12-02 21:33:45 +01:00
parent 060da52bd2
commit b03833e96b
3 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;