* @brief Snapshots multiplot time-ring contents keyed by group uniqueId. */
| 2405 | * @brief Snapshots multiplot time-ring contents keyed by group uniqueId. |
| 2406 | */ |
| 2407 | QHash<qint64, std::vector<DSP::TimeRing>> UI::Dashboard::snapshotMultiplotTimeRings() const |
| 2408 | { |
| 2409 | QHash<qint64, std::vector<DSP::TimeRing>> out; |
| 2410 | const int n = widgetCount(SerialStudio::DashboardMultiPlot); |
| 2411 | for (int i = 0; i < n; ++i) { |
| 2412 | const auto it = m_multiplotTimeRings.find(i); |
| 2413 | if (it == m_multiplotTimeRings.end()) |
| 2414 | continue; |
| 2415 | |
| 2416 | const auto& g = getGroupWidget(SerialStudio::DashboardMultiPlot, i); |
| 2417 | out.insert(ringSnapshotKey(g.sourceId, g.uniqueId), it.value()); |
| 2418 | } |
| 2419 | |
| 2420 | return out; |
| 2421 | } |
| 2422 | |
| 2423 | /** |
| 2424 | * @brief Replays a saved ring's samples into @p target via appendDecimated. Used when |
nothing calls this directly
no test coverage detected