mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-16 13:21:50 -05:00
ATV Demodulator: serialize/deserialize RF filters values
This commit is contained in:
parent
4c6451b3c4
commit
030b58a1ed
@ -103,6 +103,8 @@ QByteArray ATVDemodGUI::serialize() const
|
|||||||
s.writeBool(9, ui->hSync->isChecked());
|
s.writeBool(9, ui->hSync->isChecked());
|
||||||
s.writeBool(10, ui->vSync->isChecked());
|
s.writeBool(10, ui->vSync->isChecked());
|
||||||
s.writeBool(11, ui->halfImage->isChecked());
|
s.writeBool(11, ui->halfImage->isChecked());
|
||||||
|
s.writeS32(12, ui->rfBW->value());
|
||||||
|
s.writeS32(13, ui->rfOppBW->value());
|
||||||
|
|
||||||
return s.final();
|
return s.final();
|
||||||
}
|
}
|
||||||
@ -154,6 +156,10 @@ bool ATVDemodGUI::deserialize(const QByteArray& arrData)
|
|||||||
ui->vSync->setChecked(booltmp);
|
ui->vSync->setChecked(booltmp);
|
||||||
d.readBool(11, &booltmp, false);
|
d.readBool(11, &booltmp, false);
|
||||||
ui->halfImage->setChecked(booltmp);
|
ui->halfImage->setChecked(booltmp);
|
||||||
|
d.readS32(12, &tmp, 10);
|
||||||
|
ui->rfBW->setValue(tmp);
|
||||||
|
d.readS32(13, &tmp, 10);
|
||||||
|
ui->rfOppBW->setValue(tmp);
|
||||||
|
|
||||||
blockApplySettings(false);
|
blockApplySettings(false);
|
||||||
m_objChannelMarker.blockSignals(false);
|
m_objChannelMarker.blockSignals(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user