mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-11-03 21:40:52 -05:00 
			
		
		
		
	Redraw the Q65 sync curve(s) after a mouse-click has erased them.
This commit is contained in:
		
							parent
							
								
									2048b3fec3
								
							
						
					
					
						commit
						79133f15c6
					
				@ -239,7 +239,7 @@ void CPlotter::draw(float swide[], bool bScroll, bool bRed)
 | 
			
		||||
    if(y2>y2max) y2max=y2;
 | 
			
		||||
    j++;
 | 
			
		||||
  }
 | 
			
		||||
  if(m_bReplot) return;
 | 
			
		||||
  if(m_bReplot and m_mode!="Q65") return;
 | 
			
		||||
 | 
			
		||||
  if(swide[0]>1.0e29) m_line=0;
 | 
			
		||||
  if(m_mode=="FT4" and m_line==34) m_line=0;
 | 
			
		||||
@ -274,7 +274,7 @@ void CPlotter::draw(float swide[], bool bScroll, bool bRed)
 | 
			
		||||
    painter2D.drawText(x1-4,y,"73");
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  if(bRed and m_bQ65_Sync) {      //Plot the Q65 red or orange sync curve
 | 
			
		||||
  if(bRed and m_bQ65_Sync) {      //Plot the Q65 red/orange sync curves
 | 
			
		||||
    int k=0;
 | 
			
		||||
    int k2=0;
 | 
			
		||||
    std::ifstream f;
 | 
			
		||||
@ -337,6 +337,9 @@ void CPlotter::replot()
 | 
			
		||||
    plotsave_(swide,&m_w,&m_h1,&irow);
 | 
			
		||||
    draw(swide,false,false);
 | 
			
		||||
  }
 | 
			
		||||
  if(m_mode=="Q65" and m_bQ65_Sync) {
 | 
			
		||||
    draw(swide,false,true);
 | 
			
		||||
  }
 | 
			
		||||
  update();                                    //trigger a new paintEvent
 | 
			
		||||
  m_bReplot=false;
 | 
			
		||||
}
 | 
			
		||||
@ -767,6 +770,7 @@ void CPlotter::mouseReleaseEvent (QMouseEvent * event)
 | 
			
		||||
  else {
 | 
			
		||||
    event->ignore ();           // let parent handle
 | 
			
		||||
  }
 | 
			
		||||
  replot();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void CPlotter::mouseDoubleClickEvent (QMouseEvent * event)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user