diff options
author | Renato Filho <renato.filho@openbossa.org> | 2010-02-01 14:39:32 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-02-01 14:52:35 -0200 |
commit | cba0c6c4f3463c2b9e1f15f581e3f7958022864b (patch) | |
tree | fffe63c2de88fb560c0a84b2d391b0b2e5abc10f /PySide/typesystem_templates.xml | |
parent | 169580901390052680de2500fdefeb00f9b73a56 (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.xml | 14 |
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(&ok_); @@ -47,5 +46,18 @@ return %CONVERTTOPYTHON[%TYPE](*sequence); </template> + + <template name="fix_args,QRectF*"> + QRectF rect_; + %CPPSELF.%FUNCTION_NAME(%ARGUMENT_NAMES, &rect_); + return %CONVERTTOPYTHON[QRectF](rect_); + </template> + + <template name="fix_args,QRect*"> + QRect rect_; + %CPPSELF.%FUNCTION_NAME(%ARGUMENT_NAMES, &rect_); + return %CONVERTTOPYTHON[QRectF](rect_); + </template> + </typesystem> |