##// END OF EJS Templates
Add ownerships takeover to chartaxis
Michal Klocek -
r248:ded845353666
parent child
Show More
@@ -36,12 +36,12 const Domain ChartDataSet::domain(QChartAxis *axisY) const
36 void ChartDataSet::addSeries(QChartSeries* series, QChartAxis *axisY)
36 void ChartDataSet::addSeries(QChartSeries* series, QChartAxis *axisY)
37 {
37 {
38 // TODO: we should check the series not already added
38 // TODO: we should check the series not already added
39 series->setParent(this); // take ownership
40
39
41 series->setParent(this); // take ownership
40 series->setParent(this); // take ownership
42 clearDomains();
41 clearDomains();
43
42
44 if(axisY==0) axisY = m_axisY;
43 if(axisY==0) axisY = m_axisY;
44 axisY->setParent(this); // take ownership
45
45
46 QList<QChartSeries*> seriesList = m_seriesMap.values(axisY);
46 QList<QChartSeries*> seriesList = m_seriesMap.values(axisY);
47
47
General Comments 0
You need to be logged in to leave comments. Login now