From 182b9440525df640eafee7b3f256947bd3319152 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Tue, 9 Apr 2013 00:19:41 +0000 Subject: [PATCH] Don't apply background colors in the left ("QSO Freq") text window. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3137 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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();