From cad5f92dd66e73b64cf567c322df518d51d777b6 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 23 Sep 2017 04:16:22 +0200 Subject: [PATCH] Removed delta frequency form ValueDial --- sdrbase/gui/valuedial.cpp | 11 +---------- sdrbase/gui/valuedial.h | 3 --- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/sdrbase/gui/valuedial.cpp b/sdrbase/gui/valuedial.cpp index 5240dfa75..08a408192 100644 --- a/sdrbase/gui/valuedial.cpp +++ b/sdrbase/gui/valuedial.cpp @@ -23,7 +23,6 @@ ValueDial::ValueDial(QWidget* parent, ColorMapper colorMapper) : QWidget(parent), - m_delta(0), m_animationState(0), m_colorMapper(colorMapper) { @@ -134,13 +133,6 @@ void ValueDial::setValueRange(uint numDigits, quint64 min, quint64 max) setFixedWidth((m_numDigits + m_numDecimalPoints) * m_digitWidth + 2); } -void ValueDial::setDelta(qint64 delta) -{ - m_delta = delta; - m_animationTimer.start(20); - m_textNew = formatText(m_valueNew); -} - quint64 ValueDial::findExponent(int digit) { quint64 e = 1; @@ -166,8 +158,7 @@ QChar ValueDial::digitNeigh(QChar c, bool dir) QString ValueDial::formatText(quint64 value) { - qint64 displayValue = value + m_delta > 0 ? value + m_delta : 0; - QString str = QString("%1").arg(displayValue, m_numDigits, 10, QChar('0')); + QString str = QString("%1").arg(value, m_numDigits, 10, QChar('0')); for(int i = 0; i < m_numDecimalPoints; i++) { diff --git a/sdrbase/gui/valuedial.h b/sdrbase/gui/valuedial.h index ef4024a62..ed09906d3 100644 --- a/sdrbase/gui/valuedial.h +++ b/sdrbase/gui/valuedial.h @@ -28,8 +28,6 @@ public: void setValue(quint64 value); void setValueRange(uint numDigits, quint64 min, quint64 max); - void setDelta(qint64 delta); - qint64 getDelta() const { return m_delta; } void setFont(const QFont& font); void setBold(bool bold); void setColorMapper(ColorMapper colorMapper); @@ -51,7 +49,6 @@ private: quint64 m_value; quint64 m_valueMax; quint64 m_valueMin; - qint64 m_delta; QString m_text; quint64 m_valueNew;