diff --git a/src/plotmanager.cpp b/src/plotmanager.cpp --- a/src/plotmanager.cpp +++ b/src/plotmanager.cpp @@ -35,6 +35,7 @@ PlotManager::PlotManager(QWidget* plotAr { // initalize layout and single widget isMulti = false; + isDemoShown = false; scrollArea = NULL; setupLayout(isMulti); addPlotWidget(); @@ -174,6 +175,7 @@ Plot* PlotManager::addPlotWidget() plot->showGrid(showGridAction.isChecked()); plot->showMinorGrid(showMinorGridAction.isChecked()); plot->showLegend(showLegendAction.isChecked()); + plot->showDemoIndicator(isDemoShown); return plot; } @@ -286,6 +288,15 @@ void PlotManager::showLegend(bool show) } } +void PlotManager::showDemoIndicator(bool show) +{ + isDemoShown = show; + for (auto plot : plotWidgets) + { + plot->showDemoIndicator(show); + } +} + void PlotManager::unzoom() { for (auto plot : plotWidgets)