summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-10-17 14:31:33 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2011-12-09 19:25:36 -0300
commit1c109e3126be05cc47fa472804b8a93b45614e5b (patch)
treed10da1d9207d73ef8d3ae53d4521376829956292
parent92675c4c6d6f94f564bcc2ed31842f95980df8af (diff)
downloadpyside-1c109e3126be05cc47fa472804b8a93b45614e5b.tar.gz
pyside-1c109e3126be05cc47fa472804b8a93b45614e5b.tar.xz
pyside-1c109e3126be05cc47fa472804b8a93b45614e5b.zip
Fixes conversion rule for QGraphicsView::drawItems array argument.
-rw-r--r--PySide/QtGui/typesystem_gui_common.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml
index baf4110..6a64add 100644
--- a/PySide/QtGui/typesystem_gui_common.xml
+++ b/PySide/QtGui/typesystem_gui_common.xml
@@ -3444,9 +3444,10 @@
<conversion-rule class="target">
Shiboken::AutoDecRef option_object(PyList_New(0));
for (int i=0, max=numItems; i &lt; max; i++) {
- PyList_Append(option_object, %CONVERTTOPYTHON[QStyleOptionGraphicsItem](%in[i]));
+ const QStyleOptionGraphicsItem* item = &amp;%in[i];
+ PyList_Append(option_object, %CONVERTTOPYTHON[QStyleOptionGraphicsItem](item));
}
- PyObject *%out = option_object.object();
+ PyObject* %out = option_object.object();
</conversion-rule>
<conversion-rule class="native">