diff --git a/mainwindow.cpp b/mainwindow.cpp index cc593571e..a3f23bbb9 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1190,13 +1190,12 @@ void MainWindow::readFromStdout() //readFromStdout } QString bg="white"; - if(t.indexOf(" CQ ")>0) bg="#66ff66"; //Light green - if(m_myCall!="" and t.indexOf(" "+m_myCall+" ")>0) bg="#ff6666"; //Light red bool bQSO=abs(t.mid(22,4).toInt() - g_pWideGraph->QSOfreq()) < 10; QString t1=t.mid(0,5) + t.mid(10,4) + t.mid(15,5) + t.mid(22,4) + t.mid(32); + t1=t1.replace("\n","").mid(0,t1.length()-4); QString s = "
" + t1.replace("\n","") + "
"; + bg + "\">
" + t1 + "
"; if(bQSO) { cursor = ui->decodedTextBrowser->textCursor(); cursor.movePosition(QTextCursor::End); @@ -1207,6 +1206,10 @@ void MainWindow::readFromStdout() //readFromStdout } if(jt9com_.nagain==0) { + if(t.indexOf(" CQ ")>0) bg="#66ff66"; //green + if(m_myCall!="" and t.indexOf(" "+m_myCall+" ")>0) bg="#ff6666"; //red + QString s = "
" + t1 + "
"; cursor = ui->decodedTextBrowser2->textCursor(); cursor.movePosition(QTextCursor::End); bf = cursor.blockFormat();