mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-29 11:18:56 -05:00
Corrected spectrum initialization when set as GUI buddy
This commit is contained in:
parent
835aa26902
commit
3e95e2b1a5
@ -42,7 +42,7 @@ void GLSpectrumSettings::resetToDefaults()
|
|||||||
m_waterfallShare = 0.66;
|
m_waterfallShare = 0.66;
|
||||||
m_displayCurrent = true;
|
m_displayCurrent = true;
|
||||||
m_displayWaterfall = true;
|
m_displayWaterfall = true;
|
||||||
m_invertedWaterfall = false;
|
m_invertedWaterfall = true;
|
||||||
m_displayMaxHold = false;
|
m_displayMaxHold = false;
|
||||||
m_displayHistogram = false;
|
m_displayHistogram = false;
|
||||||
m_displayGrid = false;
|
m_displayGrid = false;
|
||||||
@ -109,7 +109,7 @@ bool GLSpectrumSettings::deserialize(const QByteArray& data)
|
|||||||
d.readReal(4, &m_refLevel, 0);
|
d.readReal(4, &m_refLevel, 0);
|
||||||
d.readReal(5, &m_powerRange, 100);
|
d.readReal(5, &m_powerRange, 100);
|
||||||
d.readBool(6, &m_displayWaterfall, true);
|
d.readBool(6, &m_displayWaterfall, true);
|
||||||
d.readBool(7, &m_invertedWaterfall, false);
|
d.readBool(7, &m_invertedWaterfall, true);
|
||||||
d.readBool(8, &m_displayMaxHold, false);
|
d.readBool(8, &m_displayMaxHold, false);
|
||||||
d.readBool(9, &m_displayHistogram, false);
|
d.readBool(9, &m_displayHistogram, false);
|
||||||
d.readS32(10, &m_decay, 1);
|
d.readS32(10, &m_decay, 1);
|
||||||
|
@ -75,6 +75,7 @@ void GLSpectrumGUI::setBuddies(SpectrumVis* spectrumVis, GLSpectrum* glSpectrum)
|
|||||||
m_glSpectrum = glSpectrum;
|
m_glSpectrum = glSpectrum;
|
||||||
m_glSpectrum->setMessageQueueToGUI(&m_messageQueue);
|
m_glSpectrum->setMessageQueueToGUI(&m_messageQueue);
|
||||||
m_spectrumVis->setMessageQueueToGUI(&m_messageQueue);
|
m_spectrumVis->setMessageQueueToGUI(&m_messageQueue);
|
||||||
|
applyGLSpectrumSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GLSpectrumGUI::resetToDefaults()
|
void GLSpectrumGUI::resetToDefaults()
|
||||||
|
Loading…
Reference in New Issue
Block a user