mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 22:14:45 -04:00
Massive UI revamping (v7): devices basic
This commit is contained in:
@@ -30,6 +30,7 @@ void TestSinkSettings::resetToDefaults()
|
||||
m_sampleRate = 48000;
|
||||
m_log2Interp = 0;
|
||||
m_spectrumGUI = nullptr;
|
||||
m_workspaceIndex = 0;
|
||||
}
|
||||
|
||||
QByteArray TestSinkSettings::serialize() const
|
||||
@@ -44,6 +45,9 @@ QByteArray TestSinkSettings::serialize() const
|
||||
s.writeBlob(4, m_spectrumGUI->serialize());
|
||||
}
|
||||
|
||||
s.writeS32(5, m_workspaceIndex);
|
||||
s.writeBlob(6, m_geometryBytes);
|
||||
|
||||
return s.final();
|
||||
}
|
||||
|
||||
@@ -71,6 +75,9 @@ bool TestSinkSettings::deserialize(const QByteArray& data)
|
||||
m_spectrumGUI->deserialize(bytetmp);
|
||||
}
|
||||
|
||||
d.readS32(5, &m_workspaceIndex, 0);
|
||||
d.readBlob(6, &m_geometryBytes);
|
||||
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user