mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-15 07:29:15 +01:00
LP-2 fixed compilation warnings about missing QtInfoMsg in switch/case
This commit is contained in:
parent
067261ed3f
commit
d0d3a56292
@ -285,6 +285,9 @@ void mainMessageOutput(QtMsgType type, const QMessageLogContext &context, const
|
||||
case QtDebugMsg:
|
||||
out << "DBG: ";
|
||||
break;
|
||||
case QtInfoMsg:
|
||||
out << "INF: ";
|
||||
break;
|
||||
case QtWarningMsg:
|
||||
out << "WRN: ";
|
||||
break;
|
||||
|
@ -52,6 +52,10 @@ void DebugGadgetWidget::customMessageHandler(QtMsgType type, const QMessageLogCo
|
||||
txt = QString("Debug: %1").arg(msg);
|
||||
color = Qt::black;
|
||||
break;
|
||||
case QtInfoMsg:
|
||||
txt = QString("Info: %1").arg(msg);
|
||||
color = Qt::blue;
|
||||
break;
|
||||
case QtWarningMsg:
|
||||
txt = QString("Warning: %1").arg(msg);
|
||||
color = Qt::red;
|
||||
|
@ -29,6 +29,7 @@
|
||||
|
||||
void myQDebugHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg)
|
||||
{
|
||||
Q_UNUSED(context);
|
||||
static bool firstRun = true;
|
||||
QString txt;
|
||||
|
||||
@ -36,6 +37,9 @@ void myQDebugHandler(QtMsgType type, const QMessageLogContext &context, const QS
|
||||
case QtDebugMsg:
|
||||
txt = QString("Debug: %1").arg(msg);
|
||||
break;
|
||||
case QtInfoMsg:
|
||||
txt = QString("Info: %1").arg(msg);
|
||||
break;
|
||||
case QtWarningMsg:
|
||||
txt = QString("Warning: %1").arg(msg);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user