aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2020-05-04 09:30:29 +0200
committerCristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2020-05-04 13:18:58 +0200
commit4281663e90bb9cf4bb00ce8fd266adc552c6c311 (patch)
tree37a02bd3f05cbe8c527f2c36ceae0d7e33cc4636
parent270d2be98ad72e0cffb20339c3a42c8f81e3b8ec (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 <Friedemann.Kleint@qt.io> Reviewed-by: Christian Tismer <tismer@stackless.com>
-rw-r--r--sources/pyside2/PySide2/QtCharts/typesystem_charts.xml13
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 a1417758..967118cd 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"/>