diff options
author | Owen Williams <owilliams@mixxx.org> | 2014-01-11 16:45:56 -0500 |
---|---|---|
committer | Owen Williams <owilliams@mixxx.org> | 2014-01-14 16:14:01 -0500 |
commit | ca978bf019e78f5e39e367c6e9d2dcb2090ad9ba (patch) | |
tree | 373d35e6a3b93635607342d5d5c1342ad07f19dc /src/widget/wnumber.cpp | |
parent | 0d90c2451e0e00f6dff7d57490de119a7413fc5e (diff) |
Eliminate misleading precision in the bpm and rate displays.
* Show only one decimal place for bpm and rate
* Waveform stretch reacts more slowly to small changes in rate.
* Vinyl control bpm updates are much more sticky.
Diffstat (limited to 'src/widget/wnumber.cpp')
-rw-r--r-- | src/widget/wnumber.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/widget/wnumber.cpp b/src/widget/wnumber.cpp index 45c4f34c02..9e598857b0 100644 --- a/src/widget/wnumber.cpp +++ b/src/widget/wnumber.cpp @@ -53,11 +53,6 @@ void WNumber::onConnectedControlValueChanged(double v) { void WNumber::setValue(double dValue) { double v = dValue + m_dConstFactor; - int d1 = (int)floor((v-floor(v))*10.); - int d2 = (int)floor((v-floor(v))*100.)%10; - setText(QString(m_qsText).append("%1.%2%3").arg( - QString("%1").arg(static_cast<int>(v), 3, 10), - QString("%1").arg(d1, 1, 10), - QString("%1").arg(d2, 1, 10))); + setText(QString(m_qsText).append(QString::number(v, 'f', 1))); } |