mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-31 03:50:20 -07:00
SpeedPlotView: Use separate buffers for periods with reduce number of points. Fix coding style.
This commit is contained in:
parent
baadf34134
commit
b599a8e2fb
3 changed files with 166 additions and 93 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue