[Kde-bindings] playground/bindings/kimono

Richard Dale Richard_Dale at tipitina.demon.co.uk
Fri Jun 2 17:12:54 UTC 2006


SVN commit 547593 by rdale:

* Invocations of signals via the qt_metacall() C function
  are now special cased, and QMetaObject::activate() is used
  to call them. C# slots are still invoked via the InvokeSlot
  class.

CCMAIL: kde-bindings at kde.org



 M  +4 -0      ChangeLog  
 M  +5 -0      qyoto.cpp  


--- trunk/playground/bindings/kimono/ChangeLog #547592:547593
@@ -1,5 +1,9 @@
 2006-06-02  Richard Dale  <rdale at foton.es>
 
+	* Invocations of signals via the qt_metacall() C function
+	  are now special cased, and QMetaObject::activate() is used
+	  to call them. C# slots are still invoked via the InvokeSlot
+	  class.
 	* Fixed bug when emitting signals for pointer arg types
 	* setMocType() now works with reference types when there
 	  in no corresponding value type in the Smoke lib.
--- trunk/playground/bindings/kimono/qyoto.cpp #547592:547593
@@ -1108,6 +1108,11 @@
 	QMetaMethod method = metaobject->method(_id);
 	QString name(method.signature());
 		
+	if (method.methodType() == QMetaMethod::Signal) {
+		metaobject->activate(qobj, _id, (void**) _o);
+		return _id - (count - offset);
+	}
+
 	int items;
 	MocArgument* mocArgs = GetMocArgumentsNumber(name, items);
 	



More information about the Kde-bindings mailing list