[Kde-bindings] KDE/kdebindings/csharp/qyoto/src
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Sun Aug 10 16:51:00 UTC 2008
SVN commit 844833 by rdale:
* Fix a bug reported by Stefano Crocco where primitives types and QStrings
were not working as arguments to slots and signals in smoke libs outside
the qt one.
CCMAIL: kde-bindings at kde.org
M +1 -0 marshall_macros.h
M +8 -0 qyotoshared.cpp
--- trunk/KDE/kdebindings/csharp/qyoto/src/marshall_macros.h #844832:844833
@@ -141,6 +141,7 @@
{
ItemList *valuelist = (ItemList*)m->item().s_voidp;
if (valuelist == 0) {
+ m->var().s_voidp = 0;
break;
}
--- trunk/KDE/kdebindings/csharp/qyoto/src/qyotoshared.cpp #844832:844833
@@ -421,28 +421,36 @@
}
} else if (staticType == "bool") {
arg->argType = xmoc_bool;
+ smoke = qt_Smoke;
typeId = smoke->idType(name.constData());
} else if (staticType == "int") {
arg->argType = xmoc_int;
+ smoke = qt_Smoke;
typeId = smoke->idType(name.constData());
} else if (staticType == "uint") {
arg->argType = xmoc_uint;
+ smoke = qt_Smoke;
typeId = smoke->idType(name.constData());
} else if (staticType == "long") {
arg->argType = xmoc_long;
+ smoke = qt_Smoke;
typeId = smoke->idType(name.constData());
} else if (staticType == "ulong") {
arg->argType = xmoc_ulong;
+ smoke = qt_Smoke;
typeId = smoke->idType(name.constData());
} else if (staticType == "double") {
arg->argType = xmoc_double;
+ smoke = qt_Smoke;
typeId = smoke->idType(name.constData());
} else if (staticType == "char*") {
arg->argType = xmoc_charstar;
+ smoke = qt_Smoke;
typeId = smoke->idType(name.constData());
} else if (staticType == "QString") {
arg->argType = xmoc_QString;
name += "*";
+ smoke = qt_Smoke;
typeId = smoke->idType(name.constData());
}
More information about the Kde-bindings
mailing list