aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/typesystem_templates.xml
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-11-18 16:47:12 -0200
committerHugo Lima <hugo.lima@openbossa.org>2009-11-18 16:47:12 -0200
commit5521bb2fd048be3cd74c427f7965926b816f82d8 (patch)
treeac691be83628a715607d5942823b966d3e1ed804 /PySide/typesystem_templates.xml
parentb8a07a9e0eca74ebdbd1d4e1537d47764f494c15 (diff)
Added inject codes for methods like QString::toDouble, QByteArray::toFloat, etc.
Diffstat (limited to 'PySide/typesystem_templates.xml')
-rw-r--r--PySide/typesystem_templates.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/PySide/typesystem_templates.xml b/PySide/typesystem_templates.xml
new file mode 100644
index 000000000..a7e209738
--- /dev/null
+++ b/PySide/typesystem_templates.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<typesystem>
+ <!-- Templates to fix bool* parameters -->
+
+ <template name="only_bool*_fix">
+ bool ok_;
+ %RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(&amp;ok_);
+ %0 = PyTuple_Pack(2, %CONVERTTOPYTHON[%RETURN_TYPE](retval_), %CONVERTTOPYTHON[%RETURN_TYPE](ok_));
+ </template>
+
+</typesystem>
+