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

Method removeLabel

src/frontend/dockwidgets/ColumnDock.cpp:528–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

526}
527
528void ColumnDock::removeLabel() {
529 auto* item = ui.twLabels->currentItem();
530 if (!item)
531 return;
532
533 int row = ui.twLabels->currentRow();
534 const auto& value = ui.twLabels->itemAt(row, 0)->text();
535 for (auto* col : std::as_const(m_columnsList))
536 col->removeValueLabel(value);
537
538 ui.twLabels->removeRow(ui.twLabels->currentRow());
539 m_column->setProjectChanged(true);
540}
541
542void ColumnDock::batchEditLabels() {
543 auto* dlg = new BatchEditValueLabelsDialog(this);

Callers

nothing calls this directly

Calls 4

currentItemMethod · 0.80
setProjectChangedMethod · 0.80
textMethod · 0.45
removeValueLabelMethod · 0.45

Tested by

no test coverage detected