diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-04-01 09:20:05 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:06 -0300 |
commit | 2e1ed4a88122b10bffa35043ff1373e8ec476dcd (patch) | |
tree | 75b3da3889ca70bdd4d63c452188f20ce4855a37 /PySide | |
parent | cfe00ac969eea7d937a6fa0a0a5752dc70b96963 (diff) |
Fixes bug #489 - PySide.QtGui.QImage with string buffer argument.
http://bugs.pyside.org/show_bug.cgi?id=489
Also added an unit test.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'PySide')
-rw-r--r-- | PySide/QtGui/typesystem_gui_common.xml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml index a0b84fc70..70535e664 100644 --- a/PySide/QtGui/typesystem_gui_common.xml +++ b/PySide/QtGui/typesystem_gui_common.xml @@ -803,6 +803,21 @@ </inject-code> </modify-function> + <add-function signature="QImage(QString,int,int,int,QImage::Format)"> + <inject-code> + <insert-template name="qimage_buffer_constructor"> + <replace from="%ARGS" to="%2, %3, %4, %5" /> + </insert-template> + </inject-code> + </add-function> + <add-function signature="QImage(QString,int,int,QImage::Format)"> + <inject-code> + <insert-template name="qimage_buffer_constructor"> + <replace from="%ARGS" to="%2, %3, %4" /> + </insert-template> + </inject-code> + </add-function> + <!-- The non-const versions are already used --> <modify-function signature="QImage(const uchar*,int,int,int,QImage::Format)" remove="all"/> <modify-function signature="QImage(const uchar*,int,int,QImage::Format)" remove="all" /> |