mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-23 12:48:40 -05:00
One click of Erase clears the text area in Echo mode. Fix calibration of
the "pwr" slider, relative to what actually happens. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5574 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
3a4c4ed7ce
commit
686b608324
@ -1771,7 +1771,7 @@ void MainWindow::on_EraseButton_clicked() //Erase
|
|||||||
{
|
{
|
||||||
qint64 ms=QDateTime::currentMSecsSinceEpoch();
|
qint64 ms=QDateTime::currentMSecsSinceEpoch();
|
||||||
ui->decodedTextBrowser2->clear();
|
ui->decodedTextBrowser2->clear();
|
||||||
if(m_mode.mid(0,4)=="WSPR") {
|
if(m_mode.mid(0,4)=="WSPR" or m_mode=="Echo") {
|
||||||
ui->decodedTextBrowser->clear();
|
ui->decodedTextBrowser->clear();
|
||||||
} else {
|
} else {
|
||||||
m_QSOText.clear();
|
m_QSOText.clear();
|
||||||
|
@ -146,7 +146,7 @@ qreal SoundOutput::attenuation () const
|
|||||||
void SoundOutput::setAttenuation (qreal a)
|
void SoundOutput::setAttenuation (qreal a)
|
||||||
{
|
{
|
||||||
Q_ASSERT (0. <= a && a <= 999.);
|
Q_ASSERT (0. <= a && a <= 999.);
|
||||||
m_volume = qPow (10., -a / 10.);
|
m_volume = qPow(10.0, -a/20.0);
|
||||||
// qDebug () << "SoundOut: attn = " << a << ", vol = " << m_volume;
|
// qDebug () << "SoundOut: attn = " << a << ", vol = " << m_volume;
|
||||||
if (m_stream)
|
if (m_stream)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user