umbrello/umbrello
debug_utils.h
Go to the documentation of this file.
102 #define DEBUG_REGISTER(src) class src##Tracer { public: src##Tracer() { Tracer::registerClass(#src, true); } }; static src##Tracer src##TracerGlobal;
103 #define DEBUG_REGISTER_DISABLED(src) class src##Tracer { public: src##Tracer() { Tracer::registerClass(#src, false); } }; static src##Tracer src##TracerGlobal;
105 #define uIgnoreZeroPointer(a) if (!a) { uDebug() << "zero pointer detected" << __FILE__ << __LINE__; continue; }
114 #define ENUM_NAME(o, e, v) (o::staticMetaObject.enumerator(o::staticMetaObject.indexOfEnumerator(#e)).valueToKey((v)))
virtual void showEvent(QShowEvent *)
Fill tree widget with collected classes.
Definition: debug_utils.cpp:133
bool isEnabled(const QString &name)
Return debugging state for a given class.
Definition: debug_utils.cpp:69
static void registerClass(const QString &name, bool state=true)
Register class for debug output.
Definition: debug_utils.cpp:109
void update(const QString &name)
Transfer class state into tree widget.
Definition: debug_utils.cpp:120
void disable(const QString &name)
Disable debug output for the given class.
Definition: debug_utils.cpp:88
void enable(const QString &name)
Enable debug output for the given class.
Definition: debug_utils.cpp:78
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.