[Kde-bindings] playground/bindings/kimono
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Thu Oct 19 00:59:13 UTC 2006
SVN commit 596973 by rdale:
* Enum return types were failing with an invalid cast error.
They are now created correctly with a Enum.ToObject() call.
* Regenerated the QDBus* classes from the Qt 4.2 headers
CCMAIL: kde-bindings at kde.org
M +6 -0 ChangeLog
M +3 -1 SmokeInvocation.cs
--- trunk/playground/bindings/kimono/ChangeLog #596972:596973
@@ -1,3 +1,9 @@
+2006-10-18 Richard Dale <rdale at foton.es>
+
+ * Enum return types were failing with an invalid cast error.
+ They are now created correctly with a Enum.ToObject() call.
+ * Regenerated the QDBus* classes from the Qt 4.2 headers
+
2006-10-18 Arno Rehn <arno at arnorehn.de>
* Implemented a very ugly hack to construct a QMainWindow in C++ and set
--- trunk/playground/bindings/kimono/SmokeInvocation.cs #596972:596973
@@ -768,7 +768,9 @@
returnValue.ReturnValue = stack[0].s_short;
} else if (returnType == typeof(ushort)) {
returnValue.ReturnValue = stack[0].s_ushort;
- } else if (returnType == typeof(int) || returnType.IsEnum) {
+ } else if (returnType.IsEnum) {
+ returnValue.ReturnValue = Enum.ToObject(returnType, stack[0].s_int);
+ } else if (returnType == typeof(int)) {
returnValue.ReturnValue = stack[0].s_int;
} else if (returnType == typeof(uint)) {
returnValue.ReturnValue = stack[0].s_uint;
More information about the Kde-bindings
mailing list