* @brief Re-applies saved sweep trigger settings onto freshly configured multiplot engines. */
| 2524 | * @brief Re-applies saved sweep trigger settings onto freshly configured multiplot engines. |
| 2525 | */ |
| 2526 | void UI::Dashboard::restoreMultiplotSweepConfig(const QMap<int, DSP::SweepEngine>& saved) |
| 2527 | { |
| 2528 | for (auto it = saved.begin(); it != saved.end(); ++it) { |
| 2529 | auto live = m_multiplotSweep.find(it.key()); |
| 2530 | if (live == m_multiplotSweep.end()) |
| 2531 | continue; |
| 2532 | |
| 2533 | const auto& src = it.value(); |
| 2534 | live->setTrigger(src.level, src.edge, src.mode, src.holdoffSec, src.triggerCurve); |
| 2535 | live->setTimebase(src.timebaseSec); |
| 2536 | live->enabled = src.enabled; |
| 2537 | } |
| 2538 | } |
| 2539 | |
| 2540 | /** |
| 2541 | * @brief Configures the line series data structures for all dashboard plots. |
nothing calls this directly
no test coverage detected