diff --git a/qmap/mainwindow.cpp b/qmap/mainwindow.cpp index e9e3f80c5..ac99c5e7d 100644 --- a/qmap/mainwindow.cpp +++ b/qmap/mainwindow.cpp @@ -954,11 +954,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); } } diff --git a/widgets/activeStations.cpp b/widgets/activeStations.cpp index 91884023d..f202c984e 100644 --- a/widgets/activeStations.cpp +++ b/widgets/activeStations.cpp @@ -92,6 +92,21 @@ void ActiveStations::displayRecentStations(QString mode, QString const& t) bool bClickOK=m_clickOK; m_clickOK=false; ui->RecentStationsPlainTextEdit->setPlainText(t); + +//Yellow background for Q65-30x decodes: + int istart=0; + while(istartRecentStationsPlainTextEdit->textCursor(); + cursor.setPosition(npos); + cursor.select(QTextCursor::LineUnderCursor); + QTextCharFormat fmt; + fmt.setBackground(QBrush(Qt::yellow)); + cursor.setCharFormat(fmt); + istart=npos+10; + } + m_clickOK=bClickOK; }