| 300 | } |
| 301 | |
| 302 | void Datapicker::handleChildAspectAboutToBeRemoved(const AbstractAspect* aspect) { |
| 303 | const auto* removedPoint = qobject_cast<const DatapickerPoint*>(aspect); |
| 304 | if (removedPoint) { |
| 305 | QGraphicsItem* item = removedPoint->graphicsItem(); |
| 306 | Q_ASSERT(item != nullptr); |
| 307 | Q_ASSERT(m_image != nullptr); |
| 308 | m_image->scene()->removeItem(item); |
| 309 | } |
| 310 | } |
| 311 | |
| 312 | void Datapicker::handleChildAspectAdded(const AbstractAspect* aspect) { |
| 313 | const auto* addedPoint = qobject_cast<const DatapickerPoint*>(aspect); |
nothing calls this directly
no test coverage detected