MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / refreshValueLabel

Method refreshValueLabel

src/gui/ClientEqOutputFader.cpp:168–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168void 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
180void ClientEqOutputFader::setGainFromY(int y)
181{

Callers

nothing calls this directly

Calls 1

linearToDbFunction · 0.70

Tested by

no test coverage detected