@@ -101,7 +101,9 void ChartPresenter::handleAxisAdded(QAbstractAxis *axis) | |||||
101 |
|
101 | |||
102 | void ChartPresenter::handleAxisRemoved(QAbstractAxis *axis) |
|
102 | void ChartPresenter::handleAxisRemoved(QAbstractAxis *axis) | |
103 | { |
|
103 | { | |
104 |
ChartAxisElement *item |
|
104 | ChartAxisElement *item = axis->d_ptr->m_item.take(); | |
|
105 | if (item->animation()) | |||
|
106 | item->animation()->stopAndDestroyLater(); | |||
105 | item->hide(); |
|
107 | item->hide(); | |
106 | item->disconnect(); |
|
108 | item->disconnect(); | |
107 | item->deleteLater(); |
|
109 | item->deleteLater(); |
General Comments 0
You need to be logged in to leave comments.
Login now