MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / onPickerColorChanged

Method onPickerColorChanged

pj_plotting/widget/src/CurveEditor.cpp:386–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384}
385
386void 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
395void CurveEditor::onCurveColorChanged(const QString& curve_name, QColor color) {
396 for (auto* button : ui_->listWidget->findChildren<QPushButton*>()) {

Callers

nothing calls this directly

Calls 3

onChangeCurveColorMethod · 0.80
isEmptyMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected