[Kde-bindings] playground/bindings/kimono
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Thu Jun 1 19:54:01 UTC 2006
SVN commit 547355 by rdale:
* Added some debugging in make_metaObject() to display the contents
of the QMetaObject
CCMAIL: kde-bindings at kde.org
M +21 -2 qyoto.cpp
--- trunk/playground/bindings/kimono/qyoto.cpp #547354:547355
@@ -49,7 +49,7 @@
#include "smoke.h"
#define QYOTO_VERSION "0.0.1"
-#define DEBUG
+// #define DEBUG
extern Smoke *qt_Smoke;
extern void init_qt_Smoke();
@@ -1015,7 +1015,26 @@
// copy it to the heap
QMetaObject* meta = new QMetaObject;
*meta = tmp;
+
+#ifdef DEBUG
+ printf("make_metaObject() superdata: %p\n", meta->d.superdata);
+ printf("stringdata: ");
+ for (int j = 0; j < stringdata_count; j++) {
+ if (meta->d.stringdata[j] == 0) {
+ printf("\\0");
+ } else {
+ printf("%c", meta->d.stringdata[j]);
+ }
+ }
+ printf("\n");
+ printf("data: ");
+ for (long i = 0; i < data_count; i++) {
+ printf("%d, ", my_data[i]);
+ }
+ printf("\n");
+#endif
+
// create smoke object
smokeqyoto_object* m = (smokeqyoto_object*)malloc(sizeof(smokeqyoto_object));
m->smoke = qt_Smoke;
@@ -1036,7 +1055,7 @@
// get method count and offset
int count = metaobject->methodCount();
int offset = metaobject->methodOffset();
-
+
// if id < offset call base version
if (_id < offset) {
// Assume the target slot is a C++ one
More information about the Kde-bindings
mailing list