Allow the red markers on top waterfall to scroll down.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@7511 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2017-01-16 18:00:50 +00:00
parent 75e03c7784
commit 6fb1718cc0

View File

@ -104,6 +104,7 @@ void CPlotter::paintEvent(QPaintEvent *) // paintEvent()
int x0=16384 + (0.001*(m_ZoomStartFreq+m_fCal)+m_fQSO-m_nkhz+1.27046) * \ int x0=16384 + (0.001*(m_ZoomStartFreq+m_fCal)+m_fQSO-m_nkhz+1.27046) * \
1000.0/df + 0.5; 1000.0/df + 0.5;
QPainter painter1(&m_WaterfallPixmap);
QPainter painter2(&m_ZoomWaterfallPixmap); QPainter painter2(&m_ZoomWaterfallPixmap);
for(int i=0; i<w; i++) { //Paint the top row for(int i=0; i<w; i++) { //Paint the top row
painter2.setPen(m_ColorTbl[m_zwf[x0+i]]); painter2.setPen(m_ColorTbl[m_zwf[x0+i]]);
@ -148,8 +149,8 @@ void CPlotter::paintEvent(QPaintEvent *) // paintEvent()
if(y>15.0) y=15.0; if(y>15.0) y=15.0;
if(x>=0 and x<=w) painter2.drawLine(x,0,x,y); if(x>=0 and x<=w) painter2.drawLine(x,0,x,y);
x=XfromFreq(float(fQSO()+0.001*freq)); x=XfromFreq(float(fQSO()+0.001*freq));
painter.setPen(pen0); painter1.setPen(pen0);
painter.drawLine(x,30,x,30+y); painter1.drawLine(x,0,x,y);
} }
f.close(); f.close();
} }