1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-03 06:24:48 -04:00

Scope: save/load traces memory: fixed trace length and pre trigger info propagation to GUI

This commit is contained in:
f4exb
2018-10-16 18:43:46 +02:00
parent a03165c688
commit efb48ce1cc
6 changed files with 69 additions and 21 deletions
+10 -2
View File
@@ -938,11 +938,15 @@ void GLScope::setTimeBase(int timeBase)
update();
}
void GLScope::setTriggerPre(uint32_t triggerPre)
void GLScope::setTriggerPre(uint32_t triggerPre, bool emitSignal)
{
m_triggerPre = triggerPre;
m_configChanged = true;
update();
if (emitSignal) {
emit preTriggerChanged(m_triggerPre);
}
}
void GLScope::setTimeOfsProMill(int timeOfsProMill)
@@ -966,11 +970,15 @@ void GLScope::setDisplayMode(DisplayMode displayMode)
update();
}
void GLScope::setTraceSize(int traceSize)
void GLScope::setTraceSize(int traceSize, bool emitSignal)
{
m_traceSize = traceSize;
m_configChanged = true;
update();
if (emitSignal) {
emit traceSizeChanged(m_traceSize);
}
}
void GLScope::updateDisplay()