diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-09-18 10:45:55 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-09-25 10:26:28 +0000 |
commit | 269eebb9fa81d77977ce5307a849108c5291197d (patch) | |
tree | 129b82c59e7b9ae5fd3df9fc9b6f2220866fd1ee /sources/pyside2 | |
parent | c3fc507d3b2a502273bd92472e1e7aa459c2d13e (diff) |
QtCharts: Add a reference in QChart::addSeries(QAbstractSeries*)
The chart takes ownership of the series. Fixes an exit
crash in the charts example.
Amends b814f865c0618faaaacb710bd0e8eb2804aaed00.
Task-number: PYSIDE-487
Change-Id: I2efcaa58031f86b4c21c9e62f56b51338f80e12d
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside2')
-rw-r--r-- | sources/pyside2/PySide2/QtCharts/typesystem_charts.xml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/pyside2/PySide2/QtCharts/typesystem_charts.xml b/sources/pyside2/PySide2/QtCharts/typesystem_charts.xml index d17734273..6c0c02a47 100644 --- a/sources/pyside2/PySide2/QtCharts/typesystem_charts.xml +++ b/sources/pyside2/PySide2/QtCharts/typesystem_charts.xml @@ -73,6 +73,11 @@ <enum-type name="ChartType"/> <enum-type name="ChartTheme"/> <enum-type name="AnimationOption"/> + <modify-function signature="addSeries(QAbstractSeries*)"> + <modify-argument index="1"> + <parent index="this" action="add"/> + </modify-argument> + </modify-function> </object-type> <object-type name="QChartView" since="5.7"> <enum-type name="RubberBand"/> |