From a469b67afb6f0257db1bc0259464a6874d2cfb75 Mon Sep 17 00:00:00 2001 From: Uwe Risse Date: Mon, 2 May 2022 15:54:42 +0200 Subject: [PATCH] Repeated highlighting of DX Call to override JTAlert coloring. --- widgets/mainwindow.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 00d24c802..88efbe10d 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -3712,6 +3712,15 @@ void MainWindow::readFromStdout() //readFromStdout || (decodedtext.string().contains(QRegularExpression {"(\\w+) <" + m_hisCall +">"})) || (decodedtext.string().contains(QRegularExpression {"<(\\w+)> " + m_hisCall})))) { ui->decodedTextBrowser->highlight_callsign(m_hisCall, QColor(255,0,0), QColor(255,255,255), true); // highlight dxCallEntry + QTimer::singleShot (500, [=] { // repeated highlighting to override JTAlert + ui->decodedTextBrowser->highlight_callsign(m_hisCall, QColor(255,0,0), QColor(255,255,255), true); + }); + QTimer::singleShot (1000, [=] { // repeated highlighting to override JTAlert + ui->decodedTextBrowser->highlight_callsign(m_hisCall, QColor(255,0,0), QColor(255,255,255), true); + }); + QTimer::singleShot (2500, [=] { // repeated highlighting to override JTAlert + ui->decodedTextBrowser->highlight_callsign(m_hisCall, QColor(255,0,0), QColor(255,255,255), true); + }); } if (m_config.highlight_DXgrid () && (m_hisGrid!="") && (decodedtext.string().contains(m_hisGrid))) { ui->decodedTextBrowser->highlight_callsign(m_hisGrid, QColor(0,0,255), QColor(255,255,255), true); // highlight dxGridEntry