| 444 | } |
| 445 | |
| 446 | void QmitkChartWidget::Impl::SetColor(const std::string &label, const std::string &colorName) |
| 447 | { |
| 448 | auto element = GetDataElementByLabel(label); |
| 449 | if (element) |
| 450 | { |
| 451 | auto colorChecked = CheckForCorrectHex(colorName); |
| 452 | element->SetColor(QVariant(QString::fromStdString(colorChecked))); |
| 453 | } |
| 454 | } |
| 455 | |
| 456 | void QmitkChartWidget::Impl::SetLineStyle(const std::string &label, LineStyle style) |
| 457 | { |