#include <QtGlobal>
#include <kdebug.h>
#include <QMetaEnum>
#include <QTreeWidget>
Go to the source code of this file.
#define DBG_SRC QString::fromLatin1(metaObject()->className()) |
#define DEBUG_REGISTER |
( |
|
src | ) |
|
Value:
public: \
}; \
static src##
Tracer src##TracerGlobal;
static void registerClass(const char *name, bool state=true, const char *filePath=0)
Definition: debug_utils.cpp:214
The singleton class for switching on or off debug messages.
Definition: debug_utils.h:63
#define DEBUG_REGISTER_DISABLED |
( |
|
src | ) |
|
Value:
public: \
}; \
static src##
Tracer src##TracerGlobal;
static void registerClass(const char *name, bool state=true, const char *filePath=0)
Definition: debug_utils.cpp:214
The singleton class for switching on or off debug messages.
Definition: debug_utils.h:63
#define ENUM_NAME |
( |
|
o, |
|
|
|
e, |
|
|
|
v |
|
) |
| (o::staticMetaObject.enumerator(o::staticMetaObject.indexOfEnumerator(#e)).valueToKey((v))) |
In a Q_OBJECT class define any enum as Q_ENUMS. With the above the following macro returns the name of a given enum. This can be used in debug output. TODO: convert it to a function.
#define uDebug |
( |
| ) |
kDebug(8060) |
#define uError |
( |
| ) |
kError(8060) |
#define uIgnoreZeroPointer |
( |
|
a | ) |
if (!a) { uDebug() << "zero pointer detected" << __FILE__ << __LINE__; continue; } |
#define uWarning |
( |
| ) |
kWarning(8060) |