| 326 | } |
| 327 | |
| 328 | void ProcessBehaviorChartDock::typeChanged(int index) { |
| 329 | const auto type = static_cast<ProcessBehaviorChart::Type>(ui.cbType->itemData(index).toInt()); |
| 330 | |
| 331 | // depending on the current type, show/hide the settings for the sample type |
| 332 | bool visible = (type == ProcessBehaviorChart::Type::XbarR || type == ProcessBehaviorChart::Type::R || type == ProcessBehaviorChart::Type::XbarS |
| 333 | || type == ProcessBehaviorChart::Type::S || type == ProcessBehaviorChart::Type::NP); |
| 334 | ui.lSampleSize->setVisible(visible); |
| 335 | ui.sbSampleSize->setVisible(visible); |
| 336 | |
| 337 | // depending on the current type, show/hide the settings for the metric used to define the limits |
| 338 | visible = (type == ProcessBehaviorChart::Type::XmR || type == ProcessBehaviorChart::Type::mR || type == ProcessBehaviorChart::Type::XbarR |
| 339 | || type == ProcessBehaviorChart::Type::R); |
| 340 | ui.lLimitsMetric->setVisible(visible); |
| 341 | ui.cbLimitsMetric->setVisible(visible); |
| 342 | |
| 343 | // constraints for the limits are updated in ProcessBehaviorChart |
| 344 | // and signals are emitted on changes to update the dock |
| 345 | |
| 346 | // second data column |
| 347 | visible = (type == ProcessBehaviorChart::Type::P || type == ProcessBehaviorChart::Type::U); |
| 348 | ui.lData2Column->setVisible(visible); |
| 349 | cbData2Column->setVisible(visible); |
| 350 | ui.lExactLimits->setVisible(visible); |
| 351 | ui.chbExactLimits->setVisible(visible); |
| 352 | |
| 353 | CONDITIONAL_LOCK_RETURN; |
| 354 | for (auto* plot : m_plots) |
| 355 | plot->setType(type); |
| 356 | } |
| 357 | |
| 358 | void ProcessBehaviorChartDock::limitsMetricChanged(int index) { |
| 359 | CONDITIONAL_LOCK_RETURN; |
nothing calls this directly
no test coverage detected