Browse Source

ATV demod: serialize and deserialize the TV standard setting

chirpmodem-v8.0.0
f4exb 10 years ago
parent
commit
284c56188c
  1. 3
      plugins/channelrx/demodatv/atvdemodgui.cpp

3
plugins/channelrx/demodatv/atvdemodgui.cpp

@ -121,6 +121,7 @@ QByteArray ATVDemodGUI::serialize() const
s.writeBool(15, ui->invertVideo->isChecked()); s.writeBool(15, ui->invertVideo->isChecked());
s.writeS32(16, ui->nbLines->currentIndex()); s.writeS32(16, ui->nbLines->currentIndex());
s.writeS32(17, ui->fmDeviation->value()); s.writeS32(17, ui->fmDeviation->value());
s.writeS32(18, ui->standard->currentIndex());
return s.final(); return s.final();
} }
@ -184,6 +185,8 @@ bool ATVDemodGUI::deserialize(const QByteArray& arrData)
ui->nbLines->setCurrentIndex(tmp); ui->nbLines->setCurrentIndex(tmp);
d.readS32(17, &tmp, 100); d.readS32(17, &tmp, 100);
ui->fmDeviation->setValue(tmp); ui->fmDeviation->setValue(tmp);
d.readS32(18, &tmp, 0);
ui->standard->setCurrentIndex(tmp);
blockApplySettings(false); blockApplySettings(false);
m_objChannelMarker.blockSignals(false); m_objChannelMarker.blockSignals(false);

Loading…
Cancel
Save