| 350 | } |
| 351 | |
| 352 | void InfoElement::curveDeleted(const AbstractAspect* aspect) { |
| 353 | auto curve = dynamic_cast<const XYCurve*>(aspect); |
| 354 | if (!curve) |
| 355 | return; |
| 356 | |
| 357 | for (auto& mp : markerpoints) { |
| 358 | if (mp.curve == curve) { |
| 359 | disconnect(curve, nullptr, this, nullptr); |
| 360 | // No remove of the custompoint |
| 361 | |
| 362 | Lock lock(m_suppressVisibleChange); |
| 363 | assert(mp.curvePath == curve->path()); |
| 364 | mp.curve = nullptr; |
| 365 | mp.customPoint->setVisible(false); |
| 366 | } |
| 367 | } |
| 368 | |
| 369 | updateValid(); |
| 370 | |
| 371 | if (curve->name() == connectionLineCurveName()) |
| 372 | setConnectionLineNextValidCurve(); |
| 373 | } |
| 374 | |
| 375 | void InfoElement::setConnectionLineNextValidCurve() { |
| 376 | for (const auto& mp : markerpoints) { |
nothing calls this directly
no test coverage detected