1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-12 19:36:10 -05:00

ATV Demod: since channel marker and window title have fixed colors set both once in the constructor

This commit is contained in:
f4exb 2017-03-18 17:56:32 +01:00
parent 376df032f5
commit a8adc84e89

View File

@ -132,11 +132,11 @@ bool ATVDemodGUI::deserialize(const QByteArray& arrData)
d.readS32(1, &tmp, 0); d.readS32(1, &tmp, 0);
m_objChannelMarker.setCenterFrequency(tmp); m_objChannelMarker.setCenterFrequency(tmp);
if (d.readU32(2, &u32tmp)) { // if (d.readU32(2, &u32tmp)) {
m_objChannelMarker.setColor(u32tmp); // m_objChannelMarker.setColor(u32tmp);
} else { // } else {
m_objChannelMarker.setColor(Qt::white); // m_objChannelMarker.setColor(Qt::white);
} // }
d.readS32(3, &tmp, 100); d.readS32(3, &tmp, 100);
ui->synchLevel->setValue(tmp); ui->synchLevel->setValue(tmp);
@ -268,6 +268,7 @@ ATVDemodGUI::ATVDemodGUI(PluginAPI* objPluginAPI, DeviceSourceAPI *objDeviceAPI,
m_objChannelMarker.setBandwidth(6000000); m_objChannelMarker.setBandwidth(6000000);
m_objChannelMarker.setCenterFrequency(0); m_objChannelMarker.setCenterFrequency(0);
m_objChannelMarker.setVisible(true); m_objChannelMarker.setVisible(true);
setTitleColor(m_objChannelMarker.getColor());
connect(&m_objChannelMarker, SIGNAL(changed()), this, SLOT(viewChanged())); connect(&m_objChannelMarker, SIGNAL(changed()), this, SLOT(viewChanged()));
@ -303,7 +304,6 @@ void ATVDemodGUI::applySettings()
{ {
if (m_blnDoApplySettings) if (m_blnDoApplySettings)
{ {
setTitleColor(m_objChannelMarker.getColor());
ui->deltaFrequency->setValue(abs(m_objChannelMarker.getCenterFrequency())); ui->deltaFrequency->setValue(abs(m_objChannelMarker.getCenterFrequency()));
ui->deltaFrequencyMinus->setChecked(m_objChannelMarker.getCenterFrequency() < 0); ui->deltaFrequencyMinus->setChecked(m_objChannelMarker.getCenterFrequency() < 0);