mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-07 00:14:46 -04:00
Band activity & Rx frequency widget enhancements
Ensure that these windows have their viewport scrolled fully to the left after deocdes and font changes. Add the band to the separator line but only if we are certain that the decodes below it are on that band. Thanks to Ton PA0TBR for the implementation and testing of the core features of this change. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5207 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
+11
-4
@@ -1384,10 +1384,16 @@ void MainWindow::readFromStdout() //readFromStdout
|
||||
msgBox("Cannot open \"" + f.fileName () + "\" for append:" + f.errorString ());
|
||||
}
|
||||
|
||||
if(m_config.insert_blank () && m_blankLine)
|
||||
if (m_config.insert_blank () && m_blankLine)
|
||||
{
|
||||
ui->decodedTextBrowser->insertLineSpacer();
|
||||
m_blankLine=false;
|
||||
QString band;
|
||||
if (QDateTime::currentMSecsSinceEpoch() / 1000 - m_secBandChanged > 50)
|
||||
{
|
||||
auto const& bands_model = m_config.bands ();
|
||||
band = ' ' + bands_model->data (bands_model->find (m_dialFreq + ui->TxFreqSpinBox->value ())).toString ();
|
||||
}
|
||||
ui->decodedTextBrowser->insertLineSpacer (band.rightJustified (40, '-'));
|
||||
m_blankLine = false;
|
||||
}
|
||||
|
||||
DecodedText decodedtext;
|
||||
@@ -2513,7 +2519,8 @@ void MainWindow::acceptQSO2(bool accepted)
|
||||
{
|
||||
if(accepted)
|
||||
{
|
||||
QString band = ADIF::bandFromFrequency ((m_dialFreq + ui->TxFreqSpinBox->value ()) / 1.e6);
|
||||
auto const& bands_model = m_config.bands ();
|
||||
auto band = bands_model->data (bands_model->find (m_dialFreq + ui->TxFreqSpinBox->value ())).toString ();
|
||||
QString date = m_dateTimeQSO.toString("yyyy-MM-dd");
|
||||
date=date.mid(0,4) + date.mid(5,2) + date.mid(8,2);
|
||||
m_logBook.addAsWorked(m_hisCall,band,m_modeTx,date);
|
||||
|
||||
Reference in New Issue
Block a user