| 1117 | } |
| 1118 | |
| 1119 | void 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. |
nothing calls this directly
no test coverage detected