* @brief Sizes the time history to the dashboard/project Time Range (rows ~= range * fps). */
| 466 | * @brief Sizes the time history to the dashboard/project Time Range (rows ~= range * fps). |
| 467 | */ |
| 468 | void Widgets::Waterfall::syncHistoryToTimeRange() |
| 469 | { |
| 470 | static auto& timer = Misc::TimerEvents::instance(); |
| 471 | const double fps = timer.fps() > 0 ? timer.fps() : 24.0; |
| 472 | const double range = UI::Dashboard::instance().plotTimeRange(); |
| 473 | setHistorySize(static_cast<int>(std::lround(range * fps))); |
| 474 | } |
| 475 | |
| 476 | /** |
| 477 | * @brief Sets the lower clip of the dB, color mapping. |
nothing calls this directly
no test coverage detected