Highlight QMAP's Q65-30B decodes with yellow background.

This commit is contained in:
Joe Taylor 2023-12-08 15:21:47 -05:00
parent 115c4c4e30
commit 6019101018
2 changed files with 12 additions and 2 deletions

View File

@ -899,6 +899,7 @@ void MainWindow::on_EraseButton_clicked()
{
ui->decodedTextBrowser->clear();
lab4->clear();
m_nline=0;
}
@ -939,10 +940,19 @@ void MainWindow::guiUpdate()
if(m_UTC0!="" and m_UTC0!=t.left(4)) {
t1="-";
ui->decodedTextBrowser->append(t1.repeated(56));
m_nline++;
}
m_UTC0=t.left(4);
ui->decodedTextBrowser->append(t.trimmed());
t=t.trimmed();
ui->decodedTextBrowser->append(t);
m_fetched++;
m_nline++;
if(t.mid(36,2)=="30") {
QTextCursor cursor(ui->decodedTextBrowser->document()->findBlockByLineNumber(m_nline-1));
QTextBlockFormat f = cursor.blockFormat();
f.setBackground(QBrush(Qt::yellow));
cursor.setBlockFormat(f);
}
}
}
t1="";

View File

@ -113,10 +113,10 @@ private:
qint32 m_modeQ65;
qint32 m_dB;
qint32 m_fetched=0;
// qint32 m_hsymStop=371;
qint32 m_hsymStop=390; //390*0.15 = 58.5 s
qint32 m_nTransmitted=0;
qint32 m_nDoubleClicked=0;
qint32 m_nline=0;
double m_fAdd;
double m_xavg;