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
+11 -1
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="";