| 4582 | } |
| 4583 | |
| 4584 | void MainWindow::applyActivePlotStyle(int style) { |
| 4585 | PlotWidget* plot = curve_editor_ != nullptr ? curve_editor_->plot() : nullptr; |
| 4586 | if (plot == nullptr) { |
| 4587 | return; |
| 4588 | } |
| 4589 | // Curve style is a plot-level property: setDefaultStyle restyles every curve |
| 4590 | // and becomes the style any curve added later inherits (addCurve applies |
| 4591 | // curveStyle()). |
| 4592 | plot->setDefaultStyle(static_cast<PlotWidgetBase::CurveStyle>(style)); |
| 4593 | onUndoableChange(); |
| 4594 | } |
| 4595 | |
| 4596 | bool MainWindow::presentPanel(QWidget* panel) { |
| 4597 | if (panel == nullptr) { |
nothing calls this directly
no test coverage detected