| 330 | } |
| 331 | |
| 332 | void FilterEditorPanel::applyPreviewDisplay() { |
| 333 | if (preview_plot_ == nullptr) { |
| 334 | return; |
| 335 | } |
| 336 | // Plot-level setters mirror how a real plot pens its curves — correct dot vs line |
| 337 | // pen widths, inherited by curves added later — so the preview matches the origin |
| 338 | // plot faithfully. They re-pen every curve, so ghost dashes must be re-applied after. |
| 339 | preview_plot_->setGridVisible(preview_grid_); |
| 340 | preview_plot_->setDefaultStyle(preview_curve_style_); |
| 341 | preview_plot_->setLineWidth(preview_line_width_); |
| 342 | } |
| 343 | |
| 344 | void FilterEditorPanel::applyGhostPens() { |
| 345 | for (const PreviewSeries& entry : preview_series_) { |
nothing calls this directly
no test coverage detected