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

Method applyActivePlotStyle

pj_app/src/MainWindow.cpp:4584–4594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4582}
4583
4584void 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
4596bool MainWindow::presentPanel(QWidget* panel) {
4597 if (panel == nullptr) {

Callers

nothing calls this directly

Calls 2

setDefaultStyleMethod · 0.80
plotMethod · 0.45

Tested by

no test coverage detected