From b25352e5b5d9aa8b868023314de4417d890f6b58 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Sat, 24 Nov 2012 03:23:01 +0000 Subject: [PATCH] Minor code cleanup. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2766 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 38 ++++---------------------------------- 1 file changed, 4 insertions(+), 34 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index b236ea557..7dafb3e48 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -981,42 +981,12 @@ void MainWindow::readFromStdout() //readFromStdout } else { int n=t.length(); QString bg="white"; - if(t.indexOf(" CQ ")>0) bg="#66ff66"; - if(t.indexOf(" "+m_myCall+" ")>0) bg="#ff6666"; + if(t.indexOf(" CQ ")>0) bg="#66ff66"; //Light green + if(t.indexOf(" "+m_myCall+" ")>0) bg="#ff6666"; //Light red ui->decodedTextBrowser->setTextBackgroundColor(bg); - ui->decodedTextBrowser->append(t.mid(0,n-2)); + t=t.mid(0,n-2) + " "; + ui->decodedTextBrowser->append(t); } - - /* - if(t.indexOf("!") >= 0) { - int n=t.length(); - if(n>=30) ui->decodedTextBrowser->append(t.mid(1,n-3)); - if(n<30) ui->decodedTextBrowser->append(t.mid(1,n-3)); - n=ui->decodedTextBrowser->verticalScrollBar()->maximum(); - ui->decodedTextBrowser->verticalScrollBar()->setValue(n); -// m_messagesText=""; -// m_bandmapText=""; - } - - if(t.indexOf("@") >= 0) { - m_messagesText += t.mid(1); - m_widebandDecode=true; - } - - if(t.indexOf("&") >= 0) { - QString q(t); - QString callsign=q.mid(5); - callsign=callsign.mid(0,callsign.indexOf(" ")); - if(callsign.length()>2) { - if(m_worked[callsign]) { - q=q.mid(1,4) + " " + q.mid(5); - } else { - q=q.mid(1,4) + " *" + q.mid(5); - } - m_bandmapText += q; - } - } - */ } }