Adding __str__ to QByteArray
This commit is contained in:
parent
74351882b5
commit
13eca0b322
1 changed files with 5 additions and 0 deletions
|
|
@ -2031,6 +2031,11 @@
|
||||||
<insert-template name="fix_bool*"/>
|
<insert-template name="fix_bool*"/>
|
||||||
</inject-code>
|
</inject-code>
|
||||||
</modify-function>
|
</modify-function>
|
||||||
|
<add-function signature="__str__()" return-type="PyObject*">
|
||||||
|
<inject-code class="target" position="beginning">
|
||||||
|
%PYARG_0 = PyString_FromString(%CPPSELF.data());
|
||||||
|
</inject-code>
|
||||||
|
</add-function>
|
||||||
<add-function signature="__len__">
|
<add-function signature="__len__">
|
||||||
<inject-code class="target" position="beginning">
|
<inject-code class="target" position="beginning">
|
||||||
return %CPPSELF.count();
|
return %CPPSELF.count();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue