From fc47ed069ee60fff932e2b6e06c4f8acd7faa0fb Mon Sep 17 00:00:00 2001 From: Renato Filho Date: Wed, 20 Apr 2011 18:43:02 -0300 Subject: Implemented necessary convertions rules for function QPicture.setData. Fixes bug #759 Reviewer: Lauro Moura Hugo Parente Lima --- PySide/QtGui/typesystem_gui_common.xml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml index 5eaedc81c..01cd45dc5 100644 --- a/PySide/QtGui/typesystem_gui_common.xml +++ b/PySide/QtGui/typesystem_gui_common.xml @@ -504,7 +504,33 @@ - + + + + + + %PYARG_0 = PyBuffer_FromMemory(const_cast<char*>(%CPPSELF.data()), %CPPSELF.size()); + + + + + + + PyObject *%out = PyBuffer_FromMemory(const_cast<char*>(%in), size); + + + const char *%out; + Py_ssize_t buffer_len; + PyObject_AsCharBuffer(arg, &%out, &buffer_len); + + + + + + uint %out = buffer_len; + + + -- cgit v1.2.3