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

Method childDeselected

src/backend/core/AbstractAspect.cpp:1119–1131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1117}
1118
1119void AbstractAspect::childDeselected(const AbstractAspect* aspect) {
1120 // forward the signal to the highest possible level in the parent-child hierarchy
1121 // e.g. axis of a plot was selected. Don't include parent aspects here that do not
1122 // need to react on the deselection of children:
1123 //* Folder
1124 //* XYFitCurve with the child column for calculated residuals
1125 //* XYSmouthCurve with the child column for calculated rough values
1126 //* CantorWorksheet with the child columns for CAS variables
1127 AbstractAspect* parent = this->parentAspect();
1128 if (parent && !parent->inherits(AspectType::Folder) && !parent->inherits(AspectType::XYFitCurve) && !parent->inherits(AspectType::XYSmoothCurve)
1129 && !parent->inherits(AspectType::Notebook))
1130 Q_EMIT this->deselected(aspect);
1131}
1132
1133/**
1134 * \brief Make the specified name unique among my children by incrementing a trailing number.

Callers

nothing calls this directly

Calls 2

parentAspectMethod · 0.95
inheritsMethod · 0.80

Tested by

no test coverage detected