Add special message to Qt handler

This makes it more obvious where an error came from.
This commit is contained in:
Vasily
2019-03-31 14:19:05 +02:00
committed by username223
parent 96513c6d07
commit 2e42773529
+5 -5
View File
@@ -15,19 +15,19 @@ void mainQtMessageHandler( QtMsgType type,
switch ( type ) switch ( type )
{ {
case QtDebugMsg: case QtDebugMsg:
LOG( DEBUG ) << localMsg.constData(); LOG( DEBUG ) << "QTMSGH: " << localMsg.constData();
break; break;
case QtInfoMsg: case QtInfoMsg:
LOG( INFO ) << localMsg.constData(); LOG( INFO ) << "QTMSGH: " << localMsg.constData();
break; break;
case QtWarningMsg: case QtWarningMsg:
LOG( WARNING ) << localMsg.constData(); LOG( WARNING ) << "QTMSGH: " << localMsg.constData();
break; break;
case QtCriticalMsg: case QtCriticalMsg:
LOG( ERROR ) << localMsg.constData(); LOG( ERROR ) << "QTMSGH: " << localMsg.constData();
break; break;
case QtFatalMsg: case QtFatalMsg:
LOG( FATAL ) << localMsg.constData(); LOG( FATAL ) << "QTMSGH: " << localMsg.constData();
break; break;
} }
} }