| 166 | } |
| 167 | |
| 168 | void ClientEqOutputFader::refreshValueLabel() |
| 169 | { |
| 170 | if (!m_valueEdit || m_valueEdit->hasFocus()) return; |
| 171 | const float db = linearToDb(m_gain); |
| 172 | QSignalBlocker b(m_valueEdit); |
| 173 | if (db <= kGainMinDb + 0.05f) { |
| 174 | m_valueEdit->setText("-inf"); |
| 175 | } else { |
| 176 | m_valueEdit->setText(QString::asprintf("%+.1f dB", db)); |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | void ClientEqOutputFader::setGainFromY(int y) |
| 181 | { |
nothing calls this directly
no test coverage detected