mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-09 17:35:39 -04:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user