Knob: add volumeRatio property to allow showing knobs with ratios other than 100 in dBV

Waveshaper, Dynamics processor: make input/output knobs respect the show in dBV setting
This commit is contained in:
Vesa
2014-03-15 10:45:55 +02:00
parent 5e3d7fa720
commit cf925d7c5b
4 changed files with 13 additions and 1 deletions

View File

@@ -58,6 +58,8 @@ class EXPORT knob : public QWidget, public FloatModelView
// correctly so we need to do this:
Q_PROPERTY(QColor outerColor READ outerColor WRITE setOuterColor)
mapPropertyFromModel(bool,isVolumeKnob,setVolumeKnob,m_volumeKnob);
mapPropertyFromModel(float,volumeRatio,setVolumeRatio,m_volumeRatio);
public:
knob( int _knob_num, QWidget * _parent = NULL, const QString & _name = QString() );
virtual ~knob();
@@ -149,6 +151,7 @@ private:
QPixmap * m_knobPixmap;
BoolModel m_volumeKnob;
FloatModel m_volumeRatio;
QPoint m_mouseOffset;
QPoint m_origMousePos;