1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 17:58:43 -05:00

Removed delta frequency form ValueDial

This commit is contained in:
f4exb 2017-09-23 04:16:22 +02:00
parent d77f3ad72e
commit cad5f92dd6
2 changed files with 1 additions and 13 deletions

View File

@ -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++)
{

View File

@ -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;