diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-04-20 17:05:54 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.lima@openbossa.org> | 2012-04-20 22:58:32 +0200 |
commit | a9141c494501f627ee111fa717e1a356cfe1fc8b (patch) | |
tree | 41759ed27642e6e6aa857a84f5e7f6df205c5ccf /PySide | |
parent | c0c336399c0e30b1d7de52980b48c1ff0043860a (diff) |
Fix bug 1041 - "QAbstractItemModel has wrong ownership policy for selectionModel()"
Change-Id: I1dbe6d3cd69774dfa18f15d83794396f17b769f0
Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
Diffstat (limited to 'PySide')
-rw-r--r-- | PySide/QtGui/typesystem_gui_common.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml index 552636af7..ab97ee15f 100644 --- a/PySide/QtGui/typesystem_gui_common.xml +++ b/PySide/QtGui/typesystem_gui_common.xml @@ -1890,6 +1890,13 @@ <define-ownership class="target" owner="default"/> </modify-argument> </modify-function> + <modify-function signature="selectionModel() const"> + <modify-argument index="return"> + <!-- Defining ownership as "default" avoids the object to be automatically + set as parent of the returned pointer. --> + <define-ownership class="target" owner="default"/> + </modify-argument> + </modify-function> <modify-function signature="setIndexWidget(const QModelIndex &, QWidget *)"> <modify-argument index="2"> <parent index="this" action="add"/> |