TCP source, UDP sink: removed rollup widget save/restore state during serialization/deserialization and make methods protected in rollup widget

pull/85/head
f4exb 2017-10-05 00:37:12 +02:00
rodzic dabe952b40
commit 58a17f421c
3 zmienionych plików z 3 dodań i 10 usunięć

Wyświetl plik

@ -65,7 +65,6 @@ void TCPSrcGUI::resetToDefaults()
QByteArray TCPSrcGUI::serialize() const
{
SimpleSerializer s(1);
s.writeBlob(1, saveState());
s.writeS32(2, m_channelMarker.getCenterFrequency());
s.writeS32(3, m_sampleFormat);
s.writeReal(4, m_outputSampleRate);
@ -96,8 +95,6 @@ bool TCPSrcGUI::deserialize(const QByteArray& data)
blockApplySettings(true);
m_channelMarker.blockSignals(true);
d.readBlob(1, &bytetmp);
restoreState(bytetmp);
d.readS32(2, &s32tmp, 0);
m_channelMarker.setCenterFrequency(s32tmp);
d.readS32(3, &s32tmp, TCPSrc::FormatSSB);

Wyświetl plik

@ -79,7 +79,6 @@ void UDPSinkGUI::resetToDefaults()
QByteArray UDPSinkGUI::serialize() const
{
SimpleSerializer s(1);
s.writeBlob(1, saveState());
s.writeS32(2, m_channelMarker.getCenterFrequency());
s.writeS32(3, m_sampleFormat);
s.writeReal(4, m_inputSampleRate);
@ -116,8 +115,6 @@ bool UDPSinkGUI::deserialize(const QByteArray& data)
blockApplySettings(true);
m_channelMarker.blockSignals(true);
d.readBlob(1, &bytetmp);
restoreState(bytetmp);
d.readBlob(6, &bytetmp);
m_channelMarker.deserialize(bytetmp);

Wyświetl plik

@ -9,10 +9,6 @@ class SDRANGEL_API RollupWidget : public QWidget {
public:
RollupWidget(QWidget* parent = NULL);
QByteArray saveState(int version = 0) const;
bool restoreState(const QByteArray& state, int version = 0);
void setTitleColor(const QColor& c);
signals:
@ -27,6 +23,9 @@ protected:
int arrangeRollups();
QByteArray saveState(int version = 0) const;
bool restoreState(const QByteArray& state, int version = 0);
void paintEvent(QPaintEvent*);
int paintRollup(QWidget* rollup, int pos, QPainter* p, bool last, const QColor& frame);