If myCall is in the message, highlight the line with red background.

This commit is contained in:
Joe Taylor 2023-12-11 19:01:05 -05:00
parent 9c7c837dc8
commit 1542b7f857

View File

@ -955,11 +955,9 @@ void MainWindow::guiUpdate()
m_nline++;
QTextCursor cursor(ui->decodedTextBrowser->document()->findBlockByLineNumber(m_nline-1));
QTextBlockFormat f = cursor.blockFormat();
if(t.mid(36,2)=="30") {
f.setBackground(QBrush(Qt::yellow));
} else {
f.setBackground(QBrush(Qt::white));
}
f.setBackground(QBrush(Qt::white));
if(t.mid(36,2)=="30") f.setBackground(QBrush(Qt::yellow));
if(t.indexOf(m_myCall)>10) f.setBackground(QBrush(Qt::red));
cursor.setBlockFormat(f);
}
}