mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-16 04:38:43 -04:00
If myCall is in the message, highlight the line with red background.
This commit is contained in:
+3
-5
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user