diff --git a/sdrbase/gui/glscopenggui.cpp b/sdrbase/gui/glscopenggui.cpp index 7f822533b..75bead96b 100644 --- a/sdrbase/gui/glscopenggui.cpp +++ b/sdrbase/gui/glscopenggui.cpp @@ -384,6 +384,11 @@ void GLScopeNGGUI::on_freerun_toggled(bool checked) ui->freerun->isChecked()); // TODO: implement one shot feature } +void GLScopeNGGUI::setTraceIndexDisplay() +{ + ui->traceText->setText(tr("%1").arg(ui->trace->value())); +} + void GLScopeNGGUI::setTimeScaleDisplay() { m_sampleRate = m_glScope->getSampleRate(); @@ -514,6 +519,11 @@ void GLScopeNGGUI::setAmpOfsDisplay() } } +void GLScopeNGGUI::setTrigIndexDisplay() +{ + ui->trigText->setText(tr("%1").arg(ui->trig->value())); +} + void GLScopeNGGUI::setTrigLevelDisplay() { double t = (ui->trigLevelCoarse->value() / 100.0f) + (ui->trigLevelFine->value() / 20000.0f); diff --git a/sdrbase/gui/glscopenggui.h b/sdrbase/gui/glscopenggui.h index 367496c80..bc79bb995 100644 --- a/sdrbase/gui/glscopenggui.h +++ b/sdrbase/gui/glscopenggui.h @@ -65,6 +65,7 @@ private: void applySettings(); // First row + void setTraceIndexDisplay(); void setTimeScaleDisplay(); void setTraceLenDisplay(); void setTimeOfsDisplay(); @@ -72,6 +73,7 @@ private: void setAmpScaleDisplay(); void setAmpOfsDisplay(); // Third row + void setTrigIndexDisplay(); void setTrigLevelDisplay(); void setTrigDelayDisplay(); void setTrigPreDisplay();