MCPcopy Create free account
hub / github.com/KDE/labplot / errorNumberChanged

Method errorNumberChanged

src/frontend/dockwidgets/BarPlotDock.cpp:432–446  ·  view source on GitHub ↗

"Error Bars"-tab ! * called when the current error bars number was changed, shows the bar properties for the selected bar. */

Source from the content-addressed store, hash-verified

430 * called when the current error bars number was changed, shows the bar properties for the selected bar.
431 */
432void BarPlotDock::errorNumberChanged(int index) {
433 if (index == -1)
434 return;
435
436 CONDITIONAL_LOCK_RETURN;
437
438 QList<ErrorBar*> errorBars;
439 for (auto* plot : m_barPlots) {
440 auto* errorBar = plot->errorBarAt(index);
441 if (errorBar)
442 errorBars << errorBar;
443 }
444
445 errorBarWidget->setErrorBars(errorBars);
446}
447
448//*************************************************************
449//******* SLOTs for changes triggered in BarPlot ********

Callers

nothing calls this directly

Calls 2

errorBarAtMethod · 0.80
setErrorBarsMethod · 0.80

Tested by

no test coverage detected