MCPcopy Create free account
hub / github.com/MITK/MITK / UpdateLabel

Method UpdateLabel

Modules/Chart/src/QmitkChartWidget.cpp:436–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434}
435
436void QmitkChartWidget::Impl::UpdateLabel(const std::string &existingLabel, const std::string &newLabel) {
437 auto element = GetDataElementByLabel(existingLabel);
438 if (element)
439 {
440 auto definedLabels = GetDataLabels(m_C3xyData);
441 auto uniqueLabel = GetUniqueLabelName(definedLabels, newLabel);
442 element->SetLabel(QString::fromStdString(uniqueLabel));
443 }
444}
445
446void QmitkChartWidget::Impl::SetColor(const std::string &label, const std::string &colorName)
447{

Callers 2

SetPreviewLabelMethod · 0.45
DoRenameLabelMethod · 0.45

Calls 1

SetLabelMethod · 0.45

Tested by

no test coverage detected