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