Ported QRect inject code from Boost.PySide bindings.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
This commit is contained in:
parent
1695809013
commit
cba0c6c4f3
2 changed files with 40 additions and 7 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue