1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-18 14:21:49 -05:00

Corrected scope GUI displays that depend on sample rate

This commit is contained in:
f4exb 2015-07-21 23:38:36 +02:00
parent 770ea3c586
commit 2f195ce6de

View File

@ -52,8 +52,6 @@ void GLScopeGUI::setBuddies(MessageQueue* messageQueue, ScopeVis* scopeVis, GLSc
void GLScopeGUI::setSampleRate(int sampleRate)
{
m_sampleRate = sampleRate;
setTimeScaleDisplay();
setTimeOfsDisplay();
}
void GLScopeGUI::resetToDefaults()
@ -241,12 +239,19 @@ void GLScopeGUI::on_scope_traceSizeChanged(int)
{
setTimeScaleDisplay();
setTimeOfsDisplay();
setTrigPreDisplay();
applySettings();
applyTriggerSettings();
}
void GLScopeGUI::on_scope_sampleRateChanged(int)
{
m_sampleRate = m_glScope->getSampleRate();
setTimeScaleDisplay();
setTimeOfsDisplay();
setTrigPreDisplay();
applySettings();
applyTriggerSettings();
}
void GLScopeGUI::setTimeScaleDisplay()