21 lines
701 B
C
Executable File
21 lines
701 B
C
Executable File
#ifndef MESSAGE_HANDLER_H_INCLUDED
|
|
#define MESSAGE_HANDLER_H_INCLUDED
|
|
|
|
#include <QtGlobal>
|
|
|
|
QtMsgType getDebugLevel();
|
|
void setDebugLevel(QtMsgType newDebugLevel);
|
|
|
|
bool messageHandlerInstalled();
|
|
QtMessageHandler atbInstallMessageHandler(QtMessageHandler handler);
|
|
|
|
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
|
|
// typedef void (*QtMessageHandler)(QtMsgType, const char *);
|
|
void atbDebugOutput(QtMsgType type, const char *msg);
|
|
#elif QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
|
// typedef void (*QtMessageHandler)(QtMsgType, const QMessageLogContext &, const QString &);
|
|
void atbDebugOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg);
|
|
#endif
|
|
|
|
#endif // MESSAGE_HANDLER_H_INCLUDED
|