diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-12-30 16:36:23 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:48:06 -0300 |
commit | 9e6762eeb050496f74fdafa1325dd294bf564ce1 (patch) | |
tree | 89dd6c04c629ba52f4c9d31c2eb71718c2ed0323 /PySide | |
parent | 394cdb357d88e4c6968d3986ca7820756661fa35 (diff) |
Fix bug#514 - "Static method QByteArray.fromRawData is missing from QtCore"
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Lauro Moura <lauro.neto@openbossa.org>
Diffstat (limited to 'PySide')
-rw-r--r-- | PySide/QtCore/typesystem_core.xml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index e416e575a..c785f797d 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -1734,7 +1734,15 @@ <modify-argument index="0" replace-value="this"/> </modify-function> <modify-function signature="startsWith(const char *)const" remove="all"/> - <modify-function signature="fromRawData(const char*,int)" remove="all"/> + <modify-function signature="fromRawData(const char*,int)"> + <modify-argument index="2"> + <remove-argument /> + </modify-argument> + <inject-code class="target"> + // %FUNCTION_NAME() - avoid generation of default function call + %PYARG_0 = %CONVERTTOPYTHON[QByteArray](QByteArray(%1)); + </inject-code> + </modify-function> <modify-function signature="number(int,int)"> <rename to="fromInt"/> </modify-function> |