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
1 changed files with 7 additions and 2 deletions

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()