"Error Bars"-tab ! * called when the current error bars number was changed, shows the bar properties for the selected bar. */
| 430 | * called when the current error bars number was changed, shows the bar properties for the selected bar. |
| 431 | */ |
| 432 | void 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 ******** |
nothing calls this directly
no test coverage detected