* @brief Registers an X-axis data buffer for a dataset's custom X source. The AxisData is * left unfilled on purpose so the XY ring grows from empty; a seeded (0,0) point * would draw a false first line segment. */
| 2357 | * would draw a false first line segment. |
| 2358 | */ |
| 2359 | void UI::Dashboard::registerXAxisIfNeeded(const DataModel::Dataset& dataset) |
| 2360 | { |
| 2361 | #ifdef BUILD_COMMERCIAL |
| 2362 | const auto& tk = Licensing::CommercialToken::current(); |
| 2363 | if (!tk.isValid() || !SS_LICENSE_GUARD() || tk.featureTier() < Licensing::FeatureTier::Trial) |
| 2364 | return; |
| 2365 | #else |
| 2366 | Q_UNUSED(dataset); |
| 2367 | return; |
| 2368 | #endif |
| 2369 | |
| 2370 | const int xSource = dataset.xAxisId; |
| 2371 | if (m_xAxisData.contains(xSource)) |
| 2372 | return; |
| 2373 | |
| 2374 | if (!m_datasets.contains(xSource)) |
| 2375 | return; |
| 2376 | |
| 2377 | DSP::AxisData xAxis(points() + 1); |
| 2378 | m_xAxisData.insert(xSource, xAxis); |
| 2379 | } |
| 2380 | |
| 2381 | //-------------------------------------------------------------------------------------------------- |
| 2382 | // Time-ring snapshot / restore |
nothing calls this directly
no test coverage detected