##// END OF EJS Templates
Fix a major memory leak
Jani Honkonen -
r229:a66d0f17c040
parent child
Show More
@@ -38,6 +38,7 void ChartDataSet::addSeries(QChartSeries* series, QChartAxis *axisY)
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
39 series->setParent(this); // take ownership
40
40
41 series->setParent(this); // take ownership
41 clearDomains();
42 clearDomains();
42
43
43 if(axisY==0) axisY = m_axisY;
44 if(axisY==0) axisY = m_axisY;
@@ -24,9 +24,8 public:
24 //implement from QWidget
24 //implement from QWidget
25 void resizeEvent(QResizeEvent *event);
25 void resizeEvent(QResizeEvent *event);
26
26
27 void addSeries(QChartSeries* series,QChartAxis* axisY=0) ;// takes ownership
27 void addSeries(QChartSeries* series,QChartAxis* axisY=0);// takes ownership
28 void removeSeries(QChartSeries* series);
28 void removeSeries(QChartSeries* series);
29
30 int margin() const;
29 int margin() const;
31
30
32 void setChartTitle(const QString& title);
31 void setChartTitle(const QString& title);
General Comments 0
You need to be logged in to leave comments. Login now