Green background for CQ messages, red for "MyCall".

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2765 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2012-11-23 17:48:04 +00:00
parent 8e637eba46
commit 5bf46fec8f
1 changed files with 4 additions and 0 deletions

View File

@ -980,6 +980,10 @@ void MainWindow::readFromStdout() //readFromStdout
return;
} else {
int n=t.length();
QString bg="white";
if(t.indexOf(" CQ ")>0) bg="#66ff66";
if(t.indexOf(" "+m_myCall+" ")>0) bg="#ff6666";
ui->decodedTextBrowser->setTextBackgroundColor(bg);
ui->decodedTextBrowser->append(t.mid(0,n-2));
}