diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-10-20 12:05:41 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-10-20 12:13:09 -0200 |
commit | 5100b62bdca70d48d5d441cc33ca941053ae1551 (patch) | |
tree | 632a218e9fe97e2a1bda64a34a17228d25399afe /PySide | |
parent | 97de7750eecb3341f4999cb3f5ae1b2576cae2e7 (diff) |
Replace code injection by typesystem commands.
Related to bug#418 - "tag parent does not work in constructor modify"
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'PySide')
-rw-r--r-- | PySide/QtGui/typesystem_gui_common.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml index 09f66d939..8593d6381 100644 --- a/PySide/QtGui/typesystem_gui_common.xml +++ b/PySide/QtGui/typesystem_gui_common.xml @@ -519,9 +519,9 @@ </value-type> <value-type name="QTreeWidgetItemIterator" > <modify-function signature="QTreeWidgetItemIterator(QTreeWidget *, QFlags<QTreeWidgetItemIterator::IteratorFlag>)"> - <inject-code class="target" position="end"> - Shiboken::setParent(%PYARG_1, (PyObject*)sbkSelf); - </inject-code> + <modify-argument index="this"> + <parent index="1" action="add" /> + </modify-argument> </modify-function> <add-function signature="value()" return-type="QTreeWidgetItem*"> <inject-code> |