| 35 | #include "headlessmanager.h" |
| 36 | |
| 37 | static void noDebugOutput(QtMsgType type, const QMessageLogContext &, const QString & msg) |
| 38 | { |
| 39 | QByteArray localMsg = msg.toLocal8Bit(); |
| 40 | const char *message = localMsg.constData(); |
| 41 | switch (type) { |
| 42 | case QtDebugMsg: |
| 43 | break; |
| 44 | case QtWarningMsg: |
| 45 | fprintf(stderr, "Warning: %s\n", message); |
| 46 | break; |
| 47 | case QtCriticalMsg: |
| 48 | fprintf(stderr, "Critical: %s\n", message); |
| 49 | break; |
| 50 | case QtFatalMsg: |
| 51 | fprintf(stderr, "Fatal: %s\n", message); |
| 52 | abort(); |
| 53 | break; |
| 54 | case QtInfoMsg: |
| 55 | fprintf(stderr, "Info: %s\n", message); |
| 56 | break; |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | static bool setup_handlers() |
| 61 | { |
nothing calls this directly
no outgoing calls
no test coverage detected