kopia lustrzana https://gitlab.com/eliggett/wfview
Remove some commented code
rodzic
9349679e5b
commit
f93dd83268
26
wfmain.cpp
26
wfmain.cpp
|
@ -4901,30 +4901,24 @@ void wfmain::handlePlotMouseMove(QMouseEvent* me)
|
||||||
|
|
||||||
issueCmd(cmdSetTPBFInner, (unsigned char)newInFreq);
|
issueCmd(cmdSetTPBFInner, (unsigned char)newInFreq);
|
||||||
issueCmd(cmdSetTPBFOuter, (unsigned char)newOutFreq);
|
issueCmd(cmdSetTPBFOuter, (unsigned char)newOutFreq);
|
||||||
//issueCmdUniquePriority(cmdSetTPBFInner, (unsigned char)newInFreq);
|
|
||||||
//issueCmdUniquePriority(cmdSetTPBFOuter, (unsigned char)newOutFreq);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
lastFreq = movedFrequency;
|
lastFreq = movedFrequency;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (passbandAction == pbtInnerMove) {
|
else if (passbandAction == pbtInnerMove) {
|
||||||
//if (TPBFInner + movedFrequency < passbandCenterFrequency) {
|
double pbFreq = ((double)(TPBFInner + movedFrequency) / passbandWidth) * 127.0;
|
||||||
double pbFreq = ((double)(TPBFInner + movedFrequency) / passbandWidth) * 127.0;
|
qint16 newFreq = pbFreq + 128;
|
||||||
qint16 newFreq = pbFreq + 128;
|
if (newFreq >= 0 && newFreq <= 255) {
|
||||||
if (newFreq >= 0 && newFreq <= 255) {
|
issueCmdUniquePriority(cmdSetTPBFInner, (unsigned char)newFreq);
|
||||||
issueCmdUniquePriority(cmdSetTPBFInner, (unsigned char)newFreq);
|
}
|
||||||
}
|
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
else if (passbandAction == pbtOuterMove) {
|
else if (passbandAction == pbtOuterMove) {
|
||||||
//if (movedFrequency + TPBFOuter > passbandCenterFrequency) {
|
double pbFreq = ((double)(TPBFOuter + movedFrequency) / passbandWidth) * 127.0;
|
||||||
double pbFreq = ((double)(TPBFOuter + movedFrequency) / passbandWidth) * 127.0;
|
qint16 newFreq = pbFreq + 128;
|
||||||
qint16 newFreq = pbFreq + 128;
|
if (newFreq >= 0 && newFreq <= 255) {
|
||||||
if (newFreq >= 0 && newFreq <= 255) {
|
issueCmdUniquePriority(cmdSetTPBFOuter, (unsigned char)newFreq);
|
||||||
issueCmdUniquePriority(cmdSetTPBFOuter, (unsigned char)newFreq);
|
}
|
||||||
}
|
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
else if (passbandAction == passbandStatic && me->buttons() == Qt::LeftButton && textItem == nullptr && prefs.clickDragTuningEnable)
|
else if (passbandAction == passbandStatic && me->buttons() == Qt::LeftButton && textItem == nullptr && prefs.clickDragTuningEnable)
|
||||||
{
|
{
|
||||||
|
|
Ładowanie…
Reference in New Issue