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

Method elementCurveRemoved

src/frontend/dockwidgets/InfoElementDock.cpp:296–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296void InfoElementDock::elementCurveRemoved(const QString& name) {
297 CONDITIONAL_LOCK_RETURN;
298 for (int i = 0; i < ui->lwCurves->count(); ++i) {
299 auto* item = ui->lwCurves->item(i);
300 auto* checkBox = static_cast<QCheckBox*>(ui->lwCurves->itemWidget(item));
301 if (checkBox->text() == name) {
302 ui->lwCurves->takeItem(i);
303 break;
304 }
305 }
306}

Callers

nothing calls this directly

Calls 2

countMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected