mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-11-03 13:30:52 -05:00 
			
		
		
		
	Yellow background for Q65-30x decodes in Active Stations window.
This commit is contained in:
		
							parent
							
								
									e040c926b9
								
							
						
					
					
						commit
						9c7c837dc8
					
				@ -92,6 +92,21 @@ void ActiveStations::displayRecentStations(QString mode, QString const& t)
 | 
			
		||||
  bool bClickOK=m_clickOK;
 | 
			
		||||
  m_clickOK=false;
 | 
			
		||||
  ui->RecentStationsPlainTextEdit->setPlainText(t);
 | 
			
		||||
 | 
			
		||||
//Yellow background for Q65-30x decodes:
 | 
			
		||||
  int istart=0;
 | 
			
		||||
  while(istart<t.length()) {
 | 
			
		||||
    int npos=t.indexOf(QRegularExpression(" 30[ABCD] "), istart);
 | 
			
		||||
    if(npos<0) break;
 | 
			
		||||
    QTextCursor cursor=ui->RecentStationsPlainTextEdit->textCursor();
 | 
			
		||||
    cursor.setPosition(npos);
 | 
			
		||||
    cursor.select(QTextCursor::LineUnderCursor);
 | 
			
		||||
    QTextCharFormat fmt;
 | 
			
		||||
    fmt.setBackground(QBrush(Qt::yellow));
 | 
			
		||||
    cursor.setCharFormat(fmt);
 | 
			
		||||
    istart=npos+10;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  m_clickOK=bClickOK;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user