Inject code for QFontMetrics.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
This commit is contained in:
parent
fc57186118
commit
63a3be9005
2 changed files with 49 additions and 7 deletions
|
|
@ -1030,14 +1030,51 @@
|
||||||
</value-type>
|
</value-type>
|
||||||
<value-type name="QTextOption::Tab"/>
|
<value-type name="QTextOption::Tab"/>
|
||||||
<value-type name="QFontMetrics" >
|
<value-type name="QFontMetrics" >
|
||||||
<!-- TODO Replace inject code! -->
|
<modify-function signature="boundingRect(int,int,int,int,int,QString,int,int*)const">
|
||||||
<modify-function signature="boundingRect(int,int,int,int,int,QString,int,int*)const" remove="all" />
|
<modify-argument index="8">
|
||||||
|
<remove-argument />
|
||||||
|
<remove-default-expression />
|
||||||
|
</modify-argument>
|
||||||
|
<modify-argument index="return">
|
||||||
|
<replace-type modified-type="PyTuple" />
|
||||||
|
</modify-argument>
|
||||||
|
<inject-code class="target" position="beginning">
|
||||||
|
<insert-template name="fix_return_args,int*">
|
||||||
|
<replace from="RETURNTYPE" to="QRect" />
|
||||||
|
</insert-template>
|
||||||
|
</inject-code>
|
||||||
|
</modify-function>
|
||||||
|
|
||||||
<!-- TODO Replace inject code! -->
|
<modify-function signature="boundingRect(QRect,int,QString,int,int*)const">
|
||||||
<modify-function signature="boundingRect(QRect,int,QString,int,int*)const" remove="all" />
|
<modify-argument index="5">
|
||||||
|
<remove-argument />
|
||||||
|
<remove-default-expression />
|
||||||
|
</modify-argument>
|
||||||
|
<modify-argument index="return">
|
||||||
|
<replace-type modified-type="PyTuple" />
|
||||||
|
</modify-argument>
|
||||||
|
<inject-code class="target" position="beginning">
|
||||||
|
<insert-template name="fix_return_args,int*">
|
||||||
|
<replace from="RETURNTYPE" to="QRect" />
|
||||||
|
</insert-template>
|
||||||
|
</inject-code>
|
||||||
|
</modify-function>
|
||||||
|
|
||||||
|
<modify-function signature="size(int,QString,int,int*)const">
|
||||||
|
<modify-argument index="4">
|
||||||
|
<remove-argument />
|
||||||
|
<remove-default-expression />
|
||||||
|
</modify-argument>
|
||||||
|
<modify-argument index="return">
|
||||||
|
<replace-type modified-type="PyTuple" />
|
||||||
|
</modify-argument>
|
||||||
|
<inject-code class="target" position="beginning">
|
||||||
|
<insert-template name="fix_return_args,int*">
|
||||||
|
<replace from="RETURNTYPE" to="QSize" />
|
||||||
|
</insert-template>
|
||||||
|
</inject-code>
|
||||||
|
</modify-function>
|
||||||
|
|
||||||
<!-- TODO Replace inject code! -->
|
|
||||||
<modify-function signature="size(int,QString,int,int*)const" remove="all" />
|
|
||||||
<modify-function signature="operator=(QFontMetrics)" remove="all"/>
|
<modify-function signature="operator=(QFontMetrics)" remove="all"/>
|
||||||
</value-type>
|
</value-type>
|
||||||
<value-type name="QGradient" force-abstract="yes" />
|
<value-type name="QGradient" force-abstract="yes" />
|
||||||
|
|
|
||||||
|
|
@ -109,6 +109,11 @@
|
||||||
else
|
else
|
||||||
return %CONVERTTOPYTHON[QByteArray](QByteArray());
|
return %CONVERTTOPYTHON[QByteArray](QByteArray());
|
||||||
</template>
|
</template>
|
||||||
|
<template name="fix_return_args,int*">
|
||||||
|
RETURNTYPE _ret;
|
||||||
|
int _arg;
|
||||||
|
_ret = %CPPSELF.%FUNCTION_NAME(%ARGUMENT_NAMES, &_arg);
|
||||||
|
%PYARG_0 = Shiboken::makeTuple(_ret, _arg);
|
||||||
|
</template>
|
||||||
</typesystem>
|
</typesystem>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue