mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-29 05:22:25 -04:00
ATV demod: serialize and deserialize the TV standard setting
This commit is contained in:
parent
3ab665142d
commit
284c56188c
@ -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…
x
Reference in New Issue
Block a user