mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-03-23 04:28:36 -04:00
Two decimal places in readout of cursor time.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7088 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
228050cf61
commit
42288082b5
11
fastplot.cpp
11
fastplot.cpp
@ -161,6 +161,12 @@ void FPlotter::draw() //draw()
|
||||
if(y>254) y=254;
|
||||
painter1.setPen(g_ColorTbl[y]);
|
||||
painter1.drawPoint(j,64-i);
|
||||
|
||||
/*
|
||||
// Testing 2x expanded scale in x direction:
|
||||
painter1.drawPoint(2*j,64-i);
|
||||
painter1.drawPoint(2*j+1,64-i);
|
||||
*/
|
||||
}
|
||||
|
||||
painter1.setPen(penGreen); // Upper green curve
|
||||
@ -171,6 +177,7 @@ void FPlotter::draw() //draw()
|
||||
int y = 0.9*m_h - greenGain*fast_green[x] - m_greenZero + 40;
|
||||
if(y>119) y=119;
|
||||
LineBuf[j].setX(x);
|
||||
// LineBuf[j].setX(2*x);
|
||||
LineBuf[j].setY(y);
|
||||
j++;
|
||||
}
|
||||
@ -219,8 +226,8 @@ void FPlotter::mouseMoveEvent(QMouseEvent *event)
|
||||
// int y=event->y();
|
||||
float t=x/m_pixPerSecond;
|
||||
QString t1;
|
||||
t1.sprintf("%4.1f",t);
|
||||
if(m_t1.length()==4) {
|
||||
t1.sprintf("%5.2f",t);
|
||||
if(m_t1.length()==5) {
|
||||
painter.setPen(Qt::black);
|
||||
painter.drawText (380,90,m_t1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user