diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2009-11-18 16:47:12 -0200 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2009-11-18 16:47:12 -0200 |
commit | 5521bb2fd048be3cd74c427f7965926b816f82d8 (patch) | |
tree | ac691be83628a715607d5942823b966d3e1ed804 /PySide/typesystem_templates.xml | |
parent | b8a07a9e0eca74ebdbd1d4e1537d47764f494c15 (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.xml | 12 |
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(&ok_); + %0 = PyTuple_Pack(2, %CONVERTTOPYTHON[%RETURN_TYPE](retval_), %CONVERTTOPYTHON[%RETURN_TYPE](ok_)); + </template> + +</typesystem> + |