Increase range of report spinbox in MSK144 to -8 --> +24 dB. Limit the yellow click-to-decode bar to max at TRperiod.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7084 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor
2016-09-15 17:06:49 +00:00
parent 2402fa8fa8
commit c8d795df0a
5 changed files with 22 additions and 2 deletions
+9
View File
@@ -129,6 +129,12 @@ void FPlotter::setGreenZero(int n)
m_bPaint2=true;
}
void FPlotter::setTRperiod(int n)
{
m_TRperiod=n;
}
void FPlotter::draw() //draw()
{
QPainter painter1(&m_HorizPixmap);
@@ -214,7 +220,10 @@ void FPlotter::mousePressEvent(QMouseEvent *event) //mousePressEvent
QPainter painter(&m_HorizPixmap);
int x0=x-n*m_pixPerSecond;
int x1=x+n*m_pixPerSecond;
int xmax=m_TRperiod*m_pixPerSecond;
if(x0 < 0) x0=0;
qDebug() << "a" << xmax;
if(x1 > xmax) x1=xmax;
if(x1 > 702) x1=702;
Q_EMIT fastPick (x0,x1,y);
int y0=64;