@@ -58,6 +58,14 PieChartItem::PieChartItem(QPieSeries *series, QGraphicsItem* item) | |||
|
58 | 58 | PieChartItem::~PieChartItem() |
|
59 | 59 | { |
|
60 | 60 | // slices deleted automatically through QGraphicsItem |
|
61 | if (m_series) { | |
|
62 | m_series->disconnect(this); | |
|
63 | QPieSeriesPrivate::fromSeries(m_series)->disconnect(this); | |
|
64 | } | |
|
65 | foreach (QPieSlice *slice, m_sliceItems.keys()) { | |
|
66 | slice->disconnect(this); | |
|
67 | QPieSlicePrivate::fromSlice(slice)->disconnect(this); | |
|
68 | } | |
|
61 | 69 | } |
|
62 | 70 | |
|
63 | 71 | void PieChartItem::setAnimation(PieAnimation *animation) |
General Comments 0
You need to be logged in to leave comments.
Login now