mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-03 14:34:57 -04:00
Morse Decoder: added scope from RTTY decoder
This commit is contained in:
@@ -58,6 +58,10 @@ QByteArray MorseDecoderSettings::serialize() const
|
||||
{
|
||||
SimpleSerializer s(1);
|
||||
|
||||
if (m_scopeGUI) {
|
||||
s.writeBlob(2, m_scopeGUI->serialize());
|
||||
}
|
||||
|
||||
s.writeString(5, m_title);
|
||||
s.writeU32(6, m_rgbColor);
|
||||
s.writeBool(7, m_useReverseAPI);
|
||||
@@ -99,6 +103,12 @@ bool MorseDecoderSettings::deserialize(const QByteArray& data)
|
||||
uint32_t utmp;
|
||||
QString strtmp;
|
||||
|
||||
if (m_scopeGUI)
|
||||
{
|
||||
d.readBlob(2, &bytetmp);
|
||||
m_scopeGUI->deserialize(bytetmp);
|
||||
}
|
||||
|
||||
d.readString(5, &m_title, "Demod Analyzer");
|
||||
d.readU32(6, &m_rgbColor, QColor(0, 255, 0).rgb());
|
||||
d.readBool(7, &m_useReverseAPI, false);
|
||||
|
||||
Reference in New Issue
Block a user