From b3d507c3317181503a735aeff6c5187294d50d5b Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Mon, 7 Apr 2008 15:42:29 +0200 Subject: [PATCH] Add a dump_component_methods() helper for debugging. --- src/core/component.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/core/component.h b/src/core/component.h index bf022a0..c1c6ec7 100644 --- a/src/core/component.h +++ b/src/core/component.h @@ -14,6 +14,8 @@ #include "component_fwd.h" #include "export.h" #include +#include +#include /** * @brief A Component is a reusable unit in the description of a Tagua variant. @@ -24,4 +26,10 @@ public: Component(); }; +static inline void dump_component_methods(Component* c) { + const QMetaObject* mo = c->metaObject(); + for (int i=0; i < mo->methodCount(); i++) + kDebug() << " ** " << mo->method(i).signature() << "->" << mo->method(i).typeName(); +} + #endif // CORE__COMPONENT_H -- 2.11.4.GIT