Fixing QColor get* methods, using new template
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
This commit is contained in:
parent
193cc80259
commit
dd261e8b50
2 changed files with 200 additions and 6 deletions
|
|
@ -64,5 +64,28 @@
|
|||
%RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(&val_);
|
||||
%PYARG_0 = PyTuple_Pack(2, %CONVERTTOPYTHON[%RETURN_TYPE](retval_), %CONVERTTOPYTHON[char](val_));
|
||||
</template>
|
||||
|
||||
<template name="fix_int*,int*,int*,int*">
|
||||
int a, b, c, d;
|
||||
%CPPSELF.%FUNCTION_NAME(&a, &b, &c, &d);
|
||||
%PYARG_0 = Shiboken::makeTuple(a, b, c, d);
|
||||
</template>
|
||||
<template name="fix_qreal*,qreal*,qreal*,qreal*">
|
||||
qreal a, b, c, d;
|
||||
%CPPSELF.%FUNCTION_NAME(&a, &b, &c, &d);
|
||||
%PYARG_0 = Shiboken::makeTuple(a, b, c, d);
|
||||
</template>
|
||||
|
||||
<template name="fix_int*,int*,int*,int*,int*">
|
||||
int a, b, c, d, e;
|
||||
%CPPSELF.%FUNCTION_NAME(&a, &b, &c, &d, &e);
|
||||
%PYARG_0 = Shiboken::makeTuple(a, b, c, d, e);
|
||||
</template>
|
||||
<template name="fix_qreal*,qreal*,qreal*,qreal*,qreal*">
|
||||
qreal a, b, c, d, e;
|
||||
%CPPSELF.%FUNCTION_NAME(&a, &b, &c, &d, &e);
|
||||
%PYARG_0 = Shiboken::makeTuple(a, b, c, d, e);
|
||||
</template>
|
||||
|
||||
</typesystem>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue