* @brief Snapshots plot time-ring contents keyed by dataset uniqueId. */
| 2386 | * @brief Snapshots plot time-ring contents keyed by dataset uniqueId. |
| 2387 | */ |
| 2388 | QHash<qint64, DSP::TimeRing> UI::Dashboard::snapshotPlotTimeRings() const |
| 2389 | { |
| 2390 | QHash<qint64, DSP::TimeRing> out; |
| 2391 | const int n = widgetCount(SerialStudio::DashboardPlot); |
| 2392 | for (int i = 0; i < n; ++i) { |
| 2393 | const auto it = m_plotTimeRings.find(i); |
| 2394 | if (it == m_plotTimeRings.end()) |
| 2395 | continue; |
| 2396 | |
| 2397 | const auto& d = getDatasetWidget(SerialStudio::DashboardPlot, i); |
| 2398 | out.insert(ringSnapshotKey(d.sourceId, d.uniqueId), it.value()); |
| 2399 | } |
| 2400 | |
| 2401 | return out; |
| 2402 | } |
| 2403 | |
| 2404 | /** |
| 2405 | * @brief Snapshots multiplot time-ring contents keyed by group uniqueId. |
nothing calls this directly
no test coverage detected