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

Method handleAspectRemoved

src/frontend/MainWin.cpp:2113–2120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2111}
2112
2113void MainWin::handleAspectRemoved(const AbstractAspect* parent, const AbstractAspect* /*before*/, const AbstractAspect* aspect) {
2114 // no need to react on removal of
2115 // - AbstractSimpleFilter
2116 // - columns in the data spreadsheet of a datapicker curve,
2117 // this can only happen when changing the error type and is done on the level of DatapickerImage
2118 if (!aspect->inherits(AspectType::AbstractFilter) && !(parent->parentAspect() && parent->parentAspect()->type() == AspectType::DatapickerCurve))
2119 m_projectExplorer->setCurrentAspect(parent);
2120}
2121
2122void MainWin::handleAspectAboutToBeRemoved(const AbstractAspect* aspect) {
2123 const auto* part = dynamic_cast<const AbstractPart*>(aspect);

Callers

nothing calls this directly

Calls 4

inheritsMethod · 0.80
parentAspectMethod · 0.80
setCurrentAspectMethod · 0.80
typeMethod · 0.45

Tested by

no test coverage detected