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:
parent
060da52bd2
commit
b03833e96b
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user