mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-02 14:04:55 -04:00
Add optional highlighting of messages with 73 or RR73
This commit is contained in:
@@ -404,6 +404,7 @@ void DisplayText::displayDecodedText(DecodedText const& decodedText, QString con
|
||||
QColor bg;
|
||||
QColor fg;
|
||||
bool CQcall = false;
|
||||
auto is_73 = decodedText.messageWords().filter (QRegularExpression {"^(73|RR73)$"}).size();
|
||||
if (decodedText.string ().contains (" CQ ")
|
||||
|| decodedText.string ().contains (" CQDX ")
|
||||
|| decodedText.string ().contains (" QRZ "))
|
||||
@@ -446,14 +447,14 @@ void DisplayText::displayDecodedText(DecodedText const& decodedText, QString con
|
||||
message = message.left (ap_pos).trimmed ();
|
||||
}
|
||||
m_CQPriority="";
|
||||
if (CQcall)
|
||||
if (CQcall || (is_73 && (m_config->highlight_73 ())))
|
||||
{
|
||||
if (displayDXCCEntity)
|
||||
{
|
||||
// if enabled add the DXCC entity and B4 status to the end of the
|
||||
// preformated text line t1
|
||||
auto currentMode = mode;
|
||||
message = appendWorkedB4 (message, decodedText.CQersCall(), dxGrid, &bg, &fg
|
||||
message = appendWorkedB4 (message, dxCall, dxGrid, &bg, &fg
|
||||
, logBook, currentBand, currentMode, extra);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user