diff options
author | Michal Klocek <michal.klocek@digia.com> | 2012-02-21 14:55:29 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@digia.com> | 2012-02-21 14:55:45 +0200 |
commit | 09026acabba0dcc2b85d1afaca0e29a3a99ba038 (patch) | |
tree | 546d536be07a3ac47af404e9cc9958d20d920f23 /src/qchartview.h | |
parent | 0ac69f2530b68257dc9aeb08b5b0e942e4ff8af1 (diff) |
Adds RemoveAllSeries method to API
Diffstat (limited to 'src/qchartview.h')
-rw-r--r-- | src/qchartview.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qchartview.h b/src/qchartview.h index b7acb5b3..a52c959b 100644 --- a/src/qchartview.h +++ b/src/qchartview.h @@ -24,8 +24,9 @@ public: //implement from QWidget
void resizeEvent(QResizeEvent *event);
- void addSeries(QChartSeries* series,QChartAxis* axisY=0);// takes ownership
- void removeSeries(QChartSeries* series);
+ void addSeries(QChartSeries* series,QChartAxis* axisY=0);// takes series ownership , takes axis ownership
+ void removeSeries(QChartSeries* series); //returns ownership , deletes axis if no series attached
+ void removeAllSeries(); // deletes series and axis
int margin() const;
void setChartTitle(const QString& title);
|