MCPcopy Create free account
hub / github.com/codestation/qcma / noDebugOutput

Function noDebugOutput

cli/main_cli.cpp:37–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35#include "headlessmanager.h"
36
37static 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
60static bool setup_handlers()
61{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected