mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
Scope GUI: refactor amp scale
This commit is contained in:
@@ -70,7 +70,6 @@ void InterferometerWebAPIAdapter::webapiFormatChannelSettings(
|
||||
{
|
||||
swgScope->getTracesData()->append(new SWGSDRangel::SWGTraceData);
|
||||
swgScope->getTracesData()->back()->setAmp(traceIt->m_amp);
|
||||
swgScope->getTracesData()->back()->setAmpIndex(traceIt->m_ampIndex);
|
||||
swgScope->getTracesData()->back()->setHasTextOverlay(traceIt->m_hasTextOverlay ? 1 : 0);
|
||||
swgScope->getTracesData()->back()->setStreamIndex(traceIt->m_streamIndex);
|
||||
swgScope->getTracesData()->back()->setOfs(traceIt->m_ofs);
|
||||
@@ -206,9 +205,6 @@ void InterferometerWebAPIAdapter::webapiUpdateChannelSettings(
|
||||
if (channelSettingsKeys.contains(QString("scopeConfig.tracesData[%1].amp").arg(i))) {
|
||||
scopeSettings.m_tracesData.back().m_amp = traceData->getAmp();
|
||||
}
|
||||
if (channelSettingsKeys.contains(QString("scopeConfig.tracesData[%1].ampIndex").arg(i))) {
|
||||
scopeSettings.m_tracesData.back().m_ampIndex = traceData->getAmpIndex();
|
||||
}
|
||||
if (channelSettingsKeys.contains(QString("scopeConfig.tracesData[%1].hasTextOverlay").arg(i))) {
|
||||
scopeSettings.m_tracesData.back().m_hasTextOverlay = traceData->getHasTextOverlay() != 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user