mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-03-24 13:08:34 -04:00
If myCall is in the message, highlight the line with red background.
This commit is contained in:
parent
9c7c837dc8
commit
1542b7f857
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user