From f3e4338efca1f04d679f8a49440a39b48aeeea3d Mon Sep 17 00:00:00 2001 From: jagannatharjun Date: Wed, 30 Dec 2020 12:08:21 +0530 Subject: [PATCH] Add a 3-Hour graph --- src/gui/properties/speedplotview.cpp | 4 ++++ src/gui/properties/speedplotview.h | 1 + src/gui/properties/speedwidget.cpp | 1 + 3 files changed, 6 insertions(+) diff --git a/src/gui/properties/speedplotview.cpp b/src/gui/properties/speedplotview.cpp index 817b12ad9..3b9d341ac 100644 --- a/src/gui/properties/speedplotview.cpp +++ b/src/gui/properties/speedplotview.cpp @@ -230,6 +230,10 @@ void SpeedPlotView::setPeriod(const TimePeriod period) m_currentMaxDuration = 30min; m_currentAverager = &m_averager30Min; break; + case SpeedPlotView::HOUR3: + m_currentMaxDuration = 3h; + m_currentAverager = &m_averager6Hour; + break; case SpeedPlotView::HOUR6: m_currentMaxDuration = 6h; m_currentAverager = &m_averager6Hour; diff --git a/src/gui/properties/speedplotview.h b/src/gui/properties/speedplotview.h index f6ad23997..464f904b4 100644 --- a/src/gui/properties/speedplotview.h +++ b/src/gui/properties/speedplotview.h @@ -71,6 +71,7 @@ public: MIN1 = 0, MIN5, MIN30, + HOUR3, HOUR6, HOUR12, HOUR24 diff --git a/src/gui/properties/speedwidget.cpp b/src/gui/properties/speedwidget.cpp index 802069dc1..06aafa786 100644 --- a/src/gui/properties/speedwidget.cpp +++ b/src/gui/properties/speedwidget.cpp @@ -71,6 +71,7 @@ SpeedWidget::SpeedWidget(PropertiesWidget *parent) m_periodCombobox->addItem(tr("1 Minute")); m_periodCombobox->addItem(tr("5 Minutes")); m_periodCombobox->addItem(tr("30 Minutes")); + m_periodCombobox->addItem(tr("3 Hours")); m_periodCombobox->addItem(tr("6 Hours")); m_periodCombobox->addItem(tr("12 Hours")); m_periodCombobox->addItem(tr("24 Hours"));