mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-20 02:52:00 -05:00
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:
parent
9ded5bf6af
commit
182b944052
@ -1190,13 +1190,12 @@ void MainWindow::readFromStdout() //readFromStdout
|
|||||||
}
|
}
|
||||||
|
|
||||||
QString bg="white";
|
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;
|
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) +
|
QString t1=t.mid(0,5) + t.mid(10,4) + t.mid(15,5) + t.mid(22,4) +
|
||||||
t.mid(32);
|
t.mid(32);
|
||||||
|
t1=t1.replace("\n","").mid(0,t1.length()-4);
|
||||||
QString s = "<table border=0 cellspacing=0 width=100%><tr><td bgcolor=\"" +
|
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) {
|
if(bQSO) {
|
||||||
cursor = ui->decodedTextBrowser->textCursor();
|
cursor = ui->decodedTextBrowser->textCursor();
|
||||||
cursor.movePosition(QTextCursor::End);
|
cursor.movePosition(QTextCursor::End);
|
||||||
@ -1207,6 +1206,10 @@ void MainWindow::readFromStdout() //readFromStdout
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(jt9com_.nagain==0) {
|
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 = ui->decodedTextBrowser2->textCursor();
|
||||||
cursor.movePosition(QTextCursor::End);
|
cursor.movePosition(QTextCursor::End);
|
||||||
bf = cursor.blockFormat();
|
bf = cursor.blockFormat();
|
||||||
|
Loading…
Reference in New Issue
Block a user