| 151 | } |
| 152 | |
| 153 | void TrafficGraphWidget::setGraphRange(std::chrono::minutes new_range) |
| 154 | { |
| 155 | m_range = new_range; |
| 156 | const auto msecs_per_sample{std::chrono::duration_cast<std::chrono::milliseconds>(m_range) / DESIRED_SAMPLES}; |
| 157 | timer->stop(); |
| 158 | timer->setInterval(msecs_per_sample); |
| 159 | |
| 160 | clear(); |
| 161 | } |
| 162 | |
| 163 | void TrafficGraphWidget::clear() |
| 164 | { |
no test coverage detected