From e0d41f2ecb0179aee05db8e030c37c0b8742516e Mon Sep 17 00:00:00 2001 From: f4exb Date: Sun, 9 Apr 2017 17:57:30 +0200 Subject: [PATCH] ATV Modulator: save overlay text in preset --- plugins/channeltx/modatv/atvmodgui.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/channeltx/modatv/atvmodgui.cpp b/plugins/channeltx/modatv/atvmodgui.cpp index 9f028363b..2f762ee0a 100644 --- a/plugins/channeltx/modatv/atvmodgui.cpp +++ b/plugins/channeltx/modatv/atvmodgui.cpp @@ -102,6 +102,7 @@ QByteArray ATVModGUI::serialize() const s.writeS32(11, ui->fps->currentIndex()); s.writeS32(12, ui->rfScaling->value()); s.writeS32(13, ui->fmExcursion->value()); + s.writeString(14, ui->overlayText->text()); return s.final(); } @@ -122,6 +123,7 @@ bool ATVModGUI::deserialize(const QByteArray& data) quint32 u32tmp; qint32 tmp; bool booltmp; + QString tmpString; blockApplySettings(true); m_channelMarker.blockSignals(true); @@ -156,10 +158,15 @@ bool ATVModGUI::deserialize(const QByteArray& data) ui->rfScaling->setValue(tmp); d.readS32(13, &tmp, 250); ui->fmExcursion->setValue(tmp); + d.readString(14, &tmpString, ""); + ui->overlayText->setText(tmpString); blockApplySettings(false); m_channelMarker.blockSignals(false); + ATVMod::MsgConfigureOverlayText* message = ATVMod::MsgConfigureOverlayText::create(ui->overlayText->text()); + m_atvMod->getInputMessageQueue()->push(message); + applySettings(); return true; }