summaryrefslogtreecommitdiffstats
path: root/PySide/QtGui/typesystem_gui_common.xml
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-10-15 17:04:30 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-10-15 18:19:46 -0300
commitd75bd8367d26e4049b6748cc001ec7482fbda832 (patch)
tree985fcf6fe08349e89583cc33eeea795bc3794a9e /PySide/QtGui/typesystem_gui_common.xml
parent5c9afb798ecc9ec29622464c9c96909a2e79f220 (diff)
downloadpyside-d75bd8367d26e4049b6748cc001ec7482fbda832.tar.gz
pyside-d75bd8367d26e4049b6748cc001ec7482fbda832.tar.xz
pyside-d75bd8367d26e4049b6748cc001ec7482fbda832.zip
Created function value to class QTreeWidgetItemIterator using the
operator *. Fixes bug #400. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'PySide/QtGui/typesystem_gui_common.xml')
-rw-r--r--PySide/QtGui/typesystem_gui_common.xml13
1 files changed, 11 insertions, 2 deletions
diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml
index 4ebef94..09f66d9 100644
--- a/PySide/QtGui/typesystem_gui_common.xml
+++ b/PySide/QtGui/typesystem_gui_common.xml
@@ -518,11 +518,20 @@
</modify-function>
</value-type>
<value-type name="QTreeWidgetItemIterator" >
+ <modify-function signature="QTreeWidgetItemIterator(QTreeWidget *, QFlags&lt;QTreeWidgetItemIterator::IteratorFlag&gt;)">
+ <inject-code class="target" position="end">
+ Shiboken::setParent(%PYARG_1, (PyObject*)sbkSelf);
+ </inject-code>
+ </modify-function>
+ <add-function signature="value()" return-type="QTreeWidgetItem*">
+ <inject-code>
+ %PYARG_0 = %CONVERTTOPYTHON[QTreeWidgetItem*](%CPPSELF.operator*());
+ SbkBaseWrapper_setOwnership(%PYARG_0, false);
+ </inject-code>
+ </add-function>
<enum-type name="IteratorFlag" flags="QTreeWidgetItemIterator::IteratorFlags"/>
<modify-function signature="operator++(int)" remove="all"/>
<modify-function signature="operator--(int)" remove="all"/>
- <modify-function signature="operator+=(int)" remove="all"/>
- <modify-function signature="operator-=(int)" remove="all"/>
<modify-function signature="operator++()" remove="all"/>
<modify-function signature="operator--()" remove="all"/>
<modify-function signature="operator*()const" remove="all"/>