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

Method childSelected

src/backend/core/AbstractAspect.cpp:1105–1117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1103}
1104
1105void AbstractAspect::childSelected(const AbstractAspect* aspect) {
1106 // forward the signal to the highest possible level in the parent-child hierarchy
1107 // e.g. axis of a plot was selected. Don't include parent aspects here that do not
1108 // need to react on the selection of children:
1109 //* Folder
1110 //* XYFitCurve with the child column for calculated residuals
1111 //* XYSmouthCurve with the child column for calculated rough values
1112 //* CantorWorksheet with the child columns for CAS variables
1113 AbstractAspect* parent = this->parentAspect();
1114 if (parent && !parent->inherits(AspectType::Folder) && !parent->inherits(AspectType::XYFitCurve) && !parent->inherits(AspectType::XYSmoothCurve)
1115 && !parent->inherits(AspectType::Notebook))
1116 Q_EMIT this->selected(aspect);
1117}
1118
1119void AbstractAspect::childDeselected(const AbstractAspect* aspect) {
1120 // forward the signal to the highest possible level in the parent-child hierarchy

Callers

nothing calls this directly

Calls 2

parentAspectMethod · 0.95
inheritsMethod · 0.80

Tested by

no test coverage detected