aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/PySide2
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2018-04-06 16:28:22 +0200
committerCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2018-04-19 18:44:34 +0000
commitb5debb687463f77053344f1e4cd7754275e487b2 (patch)
treed6dc51352506d9040be576ca8309a6830cf2e789 /sources/pyside2/PySide2
parentf93da21b3286db1bf693c26df47a538e581ff908 (diff)
Transfer ownership of the header to the QTreeView
When using setHeader on a QTreeView, the view needs to take ownership of the header object. Task-number: PYSIDE-227 Change-Id: Ib37c00c098be422c7f0df4a32a6795c267642a41 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside2/PySide2')
-rw-r--r--sources/pyside2/PySide2/QtWidgets/typesystem_widgets_common.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/pyside2/PySide2/QtWidgets/typesystem_widgets_common.xml b/sources/pyside2/PySide2/QtWidgets/typesystem_widgets_common.xml
index 5f7f42290..e5e72dc65 100644
--- a/sources/pyside2/PySide2/QtWidgets/typesystem_widgets_common.xml
+++ b/sources/pyside2/PySide2/QtWidgets/typesystem_widgets_common.xml
@@ -1126,6 +1126,11 @@
<modify-function signature="drawRow(QPainter*,QStyleOptionViewItem,QModelIndex)const">
<modify-argument index="1" invalidate-after-use="yes"/>
</modify-function>
+ <modify-function signature="setHeader(QHeaderView*)">
+ <modify-argument index="1">
+ <parent index="this" action="add"/>
+ </modify-argument>
+ </modify-function>
</object-type>
<object-type name="QUndoCommand">
<modify-function signature="mergeWith(const QUndoCommand*)">