kopia lustrzana https://gitlab.com/eliggett/wfview
Same PBT fix for CW and RTTY
rodzic
f3da86940f
commit
7b2aca6cbd
|
@ -5040,11 +5040,11 @@ void wfmain::receiveSpectrumData(QByteArray spectrum, double startFreq, double e
|
|||
/*
|
||||
pbtIndicator displays the intersection between TPBFInner and TPBFOuter
|
||||
*/
|
||||
if (currentModeInfo.mk == modeLSB) {
|
||||
pbtIndicator->topLeft->setCoords(qMax(pbStart - (TPBFInner / 2) - (pbtDefault / 2), pbStart - (TPBFOuter / 2) - (pbtDefault / 2)), 0);
|
||||
if (currentModeInfo.mk == modeLSB || currentModeInfo.mk == modeCW || currentModeInfo.mk == modeRTTY) {
|
||||
pbtIndicator->topLeft->setCoords(qMax(pbStart - (TPBFInner / 2) + (pbtDefault / 2), pbStart - (TPBFOuter / 2) + (pbtDefault / 2)), 0);
|
||||
|
||||
pbtIndicator->bottomRight->setCoords(qMin(pbStart - (TPBFInner / 2) - (pbtDefault / 2) + passbandWidth,
|
||||
pbStart - (TPBFOuter / 2) - (pbtDefault / 2) + passbandWidth), rigCaps.spectAmpMax);
|
||||
pbtIndicator->bottomRight->setCoords(qMin(pbStart - (TPBFInner / 2) + (pbtDefault / 2) + passbandWidth,
|
||||
pbStart - (TPBFOuter / 2) + (pbtDefault / 2) + passbandWidth), rigCaps.spectAmpMax);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue