ATV Modulator: save overlay text in preset

pull/27/head
f4exb 2017-04-09 17:57:30 +02:00
rodzic 29b691a5af
commit e0d41f2ecb
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -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;
}