aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/typesystem_templates.xml
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-12-08 15:40:32 -0200
committerHugo Lima <hugo.lima@openbossa.org>2009-12-08 15:40:32 -0200
commitc8fbdc9163931ec38b2c8cb8e240e295bd6f8556 (patch)
tree162c2c19f032c50d9c015eb8559a7755e356d2d8 /PySide/typesystem_templates.xml
parent354b09e00b57a8f87d53bdcd3cab0e254cd461bd (diff)
Added inject code for all QString::toSomeNumberType.
Diffstat (limited to 'PySide/typesystem_templates.xml')
-rw-r--r--PySide/typesystem_templates.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/PySide/typesystem_templates.xml b/PySide/typesystem_templates.xml
index 9003369b0..f9ed022fb 100644
--- a/PySide/typesystem_templates.xml
+++ b/PySide/typesystem_templates.xml
@@ -17,6 +17,11 @@
%RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(%1, &amp;ok_, %3);
%PYARG_0 = PyTuple_Pack(2, %CONVERTTOPYTHON[%RETURN_TYPE](retval_), %CONVERTTOPYTHON[%RETURN_TYPE](ok_));
</template>
+ <template name="fix_bool*,arg">
+ bool ok_;
+ %RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(&amp;ok_, %1);
+ %PYARG_0 = PyTuple_Pack(2, %CONVERTTOPYTHON[%RETURN_TYPE](retval_), %CONVERTTOPYTHON[%RETURN_TYPE](ok_));
+ </template>
</typesystem>