Fix for error: narrowing conversion of 'severity' from 'QtMsgType' to 'int