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

Method syncFilterEditorPreviewDisplay

pj_app/src/MainWindow.cpp:1936–1945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1934}
1935
1936void MainWindow::syncFilterEditorPreviewDisplay() {
1937 auto* panel = qobject_cast<FilterEditorPanel*>(current_panel_);
1938 if (panel == nullptr || filter_editor_origin_ == nullptr) {
1939 return;
1940 }
1941 // Mirror the plot the editor was opened on. Grid is global (applied to every plot),
1942 // so activate_grid_ already equals the origin's grid state.
1943 panel->setPreviewDisplay(
1944 activate_grid_, filter_editor_origin_->defaultCurveStyle(), filter_editor_origin_->lineWidth());
1945}
1946
1947void MainWindow::syncPanelPreviewDisplay() {
1948 // A plugin toolbox panel (e.g. the Transform Editor plugin) embeds a real

Callers

nothing calls this directly

Calls 3

setPreviewDisplayMethod · 0.80
defaultCurveStyleMethod · 0.80
lineWidthMethod · 0.45

Tested by

no test coverage detected