| 384 | } |
| 385 | |
| 386 | void CurveEditor::onPickerColorChanged(QColor color) { |
| 387 | if (plot_ == nullptr || active_color_curve_.isEmpty() || !color.isValid()) { |
| 388 | return; |
| 389 | } |
| 390 | // onChangeCurveColor calls replot() internally; no second replot here. |
| 391 | plot_->onChangeCurveColor(active_color_curve_, color); |
| 392 | emit plot_->undoableChange(); |
| 393 | } |
| 394 | |
| 395 | void CurveEditor::onCurveColorChanged(const QString& curve_name, QColor color) { |
| 396 | for (auto* button : ui_->listWidget->findChildren<QPushButton*>()) { |
nothing calls this directly
no test coverage detected