diff options
Diffstat (limited to 'muse/awl/aslider.cpp')
-rw-r--r-- | muse/awl/aslider.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/muse/awl/aslider.cpp b/muse/awl/aslider.cpp index 5f751bf6..3c5b1780 100644 --- a/muse/awl/aslider.cpp +++ b/muse/awl/aslider.cpp @@ -134,7 +134,7 @@ void AbstractSlider::wheelEvent(QWheelEvent* ev) void AbstractSlider::keyPressEvent(QKeyEvent* ev) { - float oval = _value; + double oval = _value; switch (ev->key()) { case Qt::Key_Home: _value = _minValue; break; @@ -160,7 +160,7 @@ void AbstractSlider::keyPressEvent(QKeyEvent* ev) // setValue //--------------------------------------------------------- -void AbstractSlider::setValue(float val) +void AbstractSlider::setValue(double val) { if (_log) { if (val == 0.0f) @@ -189,7 +189,7 @@ void AbstractSlider::valueChange() // value //--------------------------------------------------------- -float AbstractSlider::value() const +double AbstractSlider::value() const { return _log ? (_value <= _minValue) ? 0.0f : pow(10.0, _value*0.05f) : _value; |