diff options
author | Cristian Maureira-Fredes <[email protected]> | 2020-05-04 09:30:29 +0200 |
---|---|---|
committer | Cristian Maureira-Fredes <[email protected]> | 2020-05-04 13:18:58 +0200 |
commit | 4281663e90bb9cf4bb00ce8fd266adc552c6c311 (patch) | |
tree | 37a02bd3f05cbe8c527f2c36ceae0d7e33cc4636 | |
parent | 270d2be98ad72e0cffb20339c3a42c8f81e3b8ec (diff) |
qareaseries: keep references of lower/upper series
Increasing the refcount since otherwise the objects will be GCd.
Fixes: PYSIDE-1285
Change-Id: I9bb03c64f6ba9385de4ee892ce370bb2f827d79e
Reviewed-by: Friedemann Kleint <[email protected]>
Reviewed-by: Christian Tismer <[email protected]>
-rw-r--r-- | sources/pyside2/PySide2/QtCharts/typesystem_charts.xml | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sources/pyside2/PySide2/QtCharts/typesystem_charts.xml b/sources/pyside2/PySide2/QtCharts/typesystem_charts.xml index a14177586..967118cd9 100644 --- a/sources/pyside2/PySide2/QtCharts/typesystem_charts.xml +++ b/sources/pyside2/PySide2/QtCharts/typesystem_charts.xml @@ -75,7 +75,18 @@ <enum-type name="SeriesType"/> </object-type> <object-type name="QAreaLegendMarker" since="5.7"/> - <object-type name="QAreaSeries" since="5.7"/> + <object-type name="QAreaSeries" since="5.7"> + <modify-function signature="setUpperSeries(QtCharts::QLineSeries*)"> + <modify-argument index="1"> + <parent index="this" action="add"/> + </modify-argument> + </modify-function> + <modify-function signature="setLowerSeries(QtCharts::QLineSeries*)"> + <modify-argument index="1"> + <parent index="this" action="add"/> + </modify-argument> + </modify-function> + </object-type> <object-type name="QBarCategoryAxis" since="5.7"/> <object-type name="QBarLegendMarker" since="5.7"/> <object-type name="QBarModelMapper" since="5.7"/> |