mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 21:58:38 -05:00
No need for replot() after a mouse click on waterfall.
This commit is contained in:
parent
4b55c85c4b
commit
93add5ec38
@ -628,7 +628,6 @@ void CPlotter::MakeFrequencyStrs() //MakeFrequencyStrs
|
|||||||
|
|
||||||
int CPlotter::XfromFreq(float f) //XfromFreq()
|
int CPlotter::XfromFreq(float f) //XfromFreq()
|
||||||
{
|
{
|
||||||
// float w = m_WaterfallPixmap.width();
|
|
||||||
int x = int(m_w * (f - m_startFreq)/m_fSpan + 0.5);
|
int x = int(m_w * (f - m_startFreq)/m_fSpan + 0.5);
|
||||||
if(x<0 ) return 0;
|
if(x<0 ) return 0;
|
||||||
if(x>m_w) return m_w;
|
if(x>m_w) return m_w;
|
||||||
@ -770,7 +769,7 @@ void CPlotter::mouseReleaseEvent (QMouseEvent * event)
|
|||||||
else {
|
else {
|
||||||
event->ignore (); // let parent handle
|
event->ignore (); // let parent handle
|
||||||
}
|
}
|
||||||
replot();
|
// replot(); // ### Not needed? ###
|
||||||
}
|
}
|
||||||
|
|
||||||
void CPlotter::mouseDoubleClickEvent (QMouseEvent * event)
|
void CPlotter::mouseDoubleClickEvent (QMouseEvent * event)
|
||||||
@ -780,8 +779,7 @@ void CPlotter::mouseDoubleClickEvent (QMouseEvent * event)
|
|||||||
int n=2;
|
int n=2;
|
||||||
if(ctrl) n+=100;
|
if(ctrl) n+=100;
|
||||||
emit freezeDecode1(n);
|
emit freezeDecode1(n);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
event->ignore (); // let parent handle
|
event->ignore (); // let parent handle
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user