| 25 | QFile* g_LogFile = nullptr; |
| 26 | |
| 27 | void myMessageOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg) |
| 28 | { |
| 29 | Q_UNUSED(context); |
| 30 | QByteArray localMsg = msg.toLocal8Bit(); |
| 31 | QTextStream log(g_LogFile); |
| 32 | log << localMsg.constData() << "\n"; |
| 33 | OutputDebugStringA(localMsg.constData()); |
| 34 | OutputDebugStringA("\n"); |
| 35 | |
| 36 | if (type == QtFatalMsg) |
| 37 | abort(); |
| 38 | } |
| 39 | |
| 40 | int main(int argc, char *argv[]) |
| 41 | { |
nothing calls this directly
no outgoing calls
no test coverage detected