MCPcopy Create free account
hub / github.com/KDE/labplot / handleChildAspectAboutToBeRemoved

Method handleChildAspectAboutToBeRemoved

src/backend/datapicker/Datapicker.cpp:302–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302void 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
312void Datapicker::handleChildAspectAdded(const AbstractAspect* aspect) {
313 const auto* addedPoint = qobject_cast<const DatapickerPoint*>(aspect);

Callers

nothing calls this directly

Calls 2

graphicsItemMethod · 0.45
sceneMethod · 0.45

Tested by

no test coverage detected