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

Method curveDeleted

src/backend/worksheet/InfoElement.cpp:352–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352void 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
375void InfoElement::setConnectionLineNextValidCurve() {
376 for (const auto& mp : markerpoints) {

Callers

nothing calls this directly

Calls 3

pathMethod · 0.45
setVisibleMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected