SpeedPlotView: Use separate buffers for periods with reduce number of points. Fix coding style.

This commit is contained in:
Anton Lashkov 2016-01-17 21:05:54 +04:00
parent baadf34134
commit b599a8e2fb
3 changed files with 166 additions and 93 deletions

View file

@ -163,15 +163,12 @@ void SpeedWidget::graphUpdate()
void SpeedWidget::onPeriodChange(int period)
{
m_plot->setViewableLastPoints(static_cast<SpeedPlotView::TimePeriod>(period));
graphUpdate();
}
void SpeedWidget::onGraphChange(int id)
{
QAction *action = m_graphsMenuActions.at(id);
m_plot->setGraphEnable(static_cast<SpeedPlotView::GraphID>(id), action->isChecked());
graphUpdate();
}
void SpeedWidget::loadSettings()