umbrello/umbrello
debug_utils.h
Go to the documentation of this file.
76 static void registerClass(const QString& name, bool state=true, const QString &filePath=QString());
113 #define DEBUG_REGISTER(src) class src##Tracer { public: src##Tracer() { Tracer::registerClass(QString::fromLatin1(#src), true, QLatin1String(__FILE__)); } }; static src##Tracer src##TracerGlobal;
114 #define DEBUG_REGISTER_DISABLED(src) class src##Tracer { public: src##Tracer() { Tracer::registerClass(QString::fromLatin1(#src), false, QLatin1String(__FILE__)); } }; static src##Tracer src##TracerGlobal;
116 #define uIgnoreZeroPointer(a) if (!a) { uDebug() << "zero pointer detected" << __FILE__ << __LINE__; continue; }
125 #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:138
static void registerClass(const QString &name, bool state=true, const QString &filePath=QString())
Register class for debug output.
Definition: debug_utils.cpp:110
void update()
const char * name() const
bool isEnabled() const
void disable(const QString &name)
Disable debug output for the given class.
Definition: debug_utils.cpp:89
State state() const
void enable(const QString &name)
Enable debug output for the given class.
Definition: debug_utils.cpp:79
QObject * parent() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.