Fix LcdFloatSpinBox mouse behavior and negative values (#6923)

* Fix LcdFloatSpinBox mouse behavior and negative values
This commit is contained in:
Lost Robot
2023-10-07 21:01:30 -07:00
committed by GitHub
parent 999c10e4b3
commit ca9e98959d
4 changed files with 38 additions and 11 deletions

View File

@@ -49,6 +49,12 @@ public:
}
void setLabel(const QString &label) { m_label = label; }
void setSeamless(bool left, bool right)
{
m_wholeDisplay.setSeamless(left, true);
m_fractionDisplay.setSeamless(true, right);
}
public slots:
virtual void update();

View File

@@ -49,8 +49,9 @@ public:
~LcdWidget() override;
void setValue( int value );
void setLabel( const QString& label );
void setValue(int value);
void setValue(float value);
void setLabel(const QString& label);
void addTextForValue( int value, const QString& text )
{