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
This commit is contained in:
Joe Taylor 2013-04-09 00:19:41 +00:00
parent 86d257b4bb
commit 2de0e59bf8

View File

@ -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 = "<table border=0 cellspacing=0 width=100%><tr><td bgcolor=\"" +
bg + "\"><pre>" + t1.replace("\n","") + "</pre></td></tr></table>";
bg + "\"><pre>" + t1 + "</pre></td></tr></table>";
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 = "<table border=0 cellspacing=0 width=100%><tr><td bgcolor=\"" +
bg + "\"><pre>" + t1 + "</pre></td></tr></table>";
cursor = ui->decodedTextBrowser2->textCursor();
cursor.movePosition(QTextCursor::End);
bf = cursor.blockFormat();