Remove more diagnostic prints.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7244 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2016-10-26 19:13:18 +00:00
parent da6c803e89
commit bc1ffa6839

View File

@ -5061,41 +5061,30 @@ void MainWindow::on_outAttenuation_valueChanged (int a)
{
QString tt_str;
qreal dBAttn {a / 10.}; // slider interpreted as dB / 100
if (m_tune && m_config.pwrBandTuneMemory())
{
tt_str = tr ("Tune digital gain");
}
else
{
tt_str = tr ("Transmit digital gain");
}
if (m_tune && m_config.pwrBandTuneMemory()) {
tt_str = tr ("Tune digital gain");
} else {
tt_str = tr ("Transmit digital gain");
}
tt_str += (a ? QString::number (-dBAttn, 'f', 1) : "0") + "dB";
if (!m_block_pwr_tooltip)
{
QToolTip::showText (QCursor::pos (), tt_str, ui->outAttenuation);
}
if (!m_block_pwr_tooltip) {
QToolTip::showText (QCursor::pos (), tt_str, ui->outAttenuation);
}
QString curBand = ui->bandComboBox->currentText();
if (m_PwrBandSetOK && !m_tune && m_config.pwrBandTxMemory ())
{
m_pwrBandTxMemory[curBand] = a; // remember our Tx pwr
qDebug () << "Tx=" << QString::number(a);
}
if (m_PwrBandSetOK && m_tune && m_config.pwrBandTuneMemory())
{
m_pwrBandTuneMemory[curBand] = a; // remember our Tune pwr
qDebug () << "Tune=" << QString::number(a);
}
// Updating attenuation for tuning is done in stop_tuning
if (m_PwrBandSetOK && !m_tune && m_config.pwrBandTxMemory ()) {
m_pwrBandTxMemory[curBand] = a; // remember our Tx pwr
}
if (m_PwrBandSetOK && m_tune && m_config.pwrBandTuneMemory()) {
m_pwrBandTuneMemory[curBand] = a; // remember our Tune pwr
}
Q_EMIT outAttenuationChanged (dBAttn);
}
void MainWindow::on_actionShort_list_of_add_on_prefixes_and_suffixes_triggered()
{
if (!m_prefixes)
{
m_prefixes.reset (new HelpTextWindow {tr ("Prefixes"), ":/prefixes.txt", {"Courier", 10}});
}
if (!m_prefixes) {
m_prefixes.reset (new HelpTextWindow {tr ("Prefixes"), ":/prefixes.txt", {"Courier", 10}});
}
m_prefixes->showNormal();
m_prefixes->raise ();
}