mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-11-03 21:40:52 -05:00 
			
		
		
		
	Correct a flaw in setting QMAP background colors.
This commit is contained in:
		
							parent
							
								
									6019101018
								
							
						
					
					
						commit
						0cf01f1248
					
				@ -941,18 +941,24 @@ void MainWindow::guiUpdate()
 | 
				
			|||||||
        t1="-";
 | 
					        t1="-";
 | 
				
			||||||
        ui->decodedTextBrowser->append(t1.repeated(56));
 | 
					        ui->decodedTextBrowser->append(t1.repeated(56));
 | 
				
			||||||
        m_nline++;
 | 
					        m_nline++;
 | 
				
			||||||
 | 
					        QTextCursor cursor(ui->decodedTextBrowser->document()->findBlockByLineNumber(m_nline-1));
 | 
				
			||||||
 | 
					        QTextBlockFormat f = cursor.blockFormat();
 | 
				
			||||||
 | 
					        f.setBackground(QBrush(Qt::white));
 | 
				
			||||||
 | 
					        cursor.setBlockFormat(f);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      m_UTC0=t.left(4);
 | 
					      m_UTC0=t.left(4);
 | 
				
			||||||
      t=t.trimmed();
 | 
					      t=t.trimmed();
 | 
				
			||||||
      ui->decodedTextBrowser->append(t);
 | 
					      ui->decodedTextBrowser->append(t);
 | 
				
			||||||
      m_fetched++;
 | 
					      m_fetched++;
 | 
				
			||||||
      m_nline++;
 | 
					      m_nline++;
 | 
				
			||||||
      if(t.mid(36,2)=="30") {
 | 
					 | 
				
			||||||
      QTextCursor cursor(ui->decodedTextBrowser->document()->findBlockByLineNumber(m_nline-1));
 | 
					      QTextCursor cursor(ui->decodedTextBrowser->document()->findBlockByLineNumber(m_nline-1));
 | 
				
			||||||
      QTextBlockFormat f = cursor.blockFormat();
 | 
					      QTextBlockFormat f = cursor.blockFormat();
 | 
				
			||||||
 | 
					      if(t.mid(36,2)=="30") {
 | 
				
			||||||
        f.setBackground(QBrush(Qt::yellow));
 | 
					        f.setBackground(QBrush(Qt::yellow));
 | 
				
			||||||
        cursor.setBlockFormat(f);
 | 
					      } else {
 | 
				
			||||||
 | 
					        f.setBackground(QBrush(Qt::white));
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					      cursor.setBlockFormat(f);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  t1="";
 | 
					  t1="";
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user