mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-29 07:39:43 -05:00
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:
parent
75e03c7784
commit
6fb1718cc0
@ -104,6 +104,7 @@ void CPlotter::paintEvent(QPaintEvent *) // paintEvent()
|
||||
int x0=16384 + (0.001*(m_ZoomStartFreq+m_fCal)+m_fQSO-m_nkhz+1.27046) * \
|
||||
1000.0/df + 0.5;
|
||||
|
||||
QPainter painter1(&m_WaterfallPixmap);
|
||||
QPainter painter2(&m_ZoomWaterfallPixmap);
|
||||
for(int i=0; i<w; i++) { //Paint the top row
|
||||
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(x>=0 and x<=w) painter2.drawLine(x,0,x,y);
|
||||
x=XfromFreq(float(fQSO()+0.001*freq));
|
||||
painter.setPen(pen0);
|
||||
painter.drawLine(x,30,x,30+y);
|
||||
painter1.setPen(pen0);
|
||||
painter1.drawLine(x,0,x,y);
|
||||
}
|
||||
f.close();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user