Ported QRect inject code from Boost.PySide bindings.

Reviewed by Hugo Parente <hugo.lima@openbossa.org>
This commit is contained in:
Renato Filho 2010-02-01 14:39:32 -03:00 • committed by Hugo Lima
commit cba0c6c4f3
2 changed files with 40 additions and 7 deletions

View file

@ -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>