aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/typesystem_templates.xml
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-02-01 14:39:32 -0300
committerHugo Lima <hugo.lima@openbossa.org>2010-02-01 14:52:35 -0200
commitcba0c6c4f3463c2b9e1f15f581e3f7958022864b (patch)
treefffe63c2de88fb560c0a84b2d391b0b2e5abc10f /PySide/typesystem_templates.xml
parent169580901390052680de2500fdefeb00f9b73a56 (diff)
Ported QRect inject code from Boost.PySide bindings.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Diffstat (limited to 'PySide/typesystem_templates.xml')
-rw-r--r--PySide/typesystem_templates.xml14
1 files changed, 13 insertions, 1 deletions
diff --git a/PySide/typesystem_templates.xml b/PySide/typesystem_templates.xml
index b8f1981f3..c37cc6342 100644
--- a/PySide/typesystem_templates.xml
+++ b/PySide/typesystem_templates.xml
@@ -1,7 +1,6 @@
<?xml version="1.0"?>
<typesystem>
<!-- Templates to fix bool* parameters -->
-
<template name="fix_bool*">
bool ok_;
%RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(&amp;ok_);
@@ -47,5 +46,18 @@
return %CONVERTTOPYTHON[%TYPE](*sequence);
</template>
+
+ <template name="fix_args,QRectF*">
+ QRectF rect_;
+ %CPPSELF.%FUNCTION_NAME(%ARGUMENT_NAMES, &amp;rect_);
+ return %CONVERTTOPYTHON[QRectF](rect_);
+ </template>
+
+ <template name="fix_args,QRect*">
+ QRect rect_;
+ %CPPSELF.%FUNCTION_NAME(%ARGUMENT_NAMES, &amp;rect_);
+ return %CONVERTTOPYTHON[QRectF](rect_);
+ </template>
+
</typesystem>