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

Scope GUI: show currently displayed trace sample rate

This commit is contained in:
f4exb 2016-04-01 05:29:54 +02:00
parent 8eb29d9ce0
commit bbfa4dfd17
2 changed files with 32 additions and 12 deletions

View File

@ -485,6 +485,7 @@ void GLScopeGUI::on_scope_traceSizeChanged(int)
void GLScopeGUI::on_scope_sampleRateChanged(int)
{
m_sampleRate = m_glScope->getSampleRate();
ui->sampleRateText->setText(tr("%1\nkS/s").arg(m_sampleRate / 1000.0f, 0, 'f', 2));
setTimeScaleDisplay();
setTraceLenDisplay();
setTimeOfsDisplay();
@ -796,6 +797,7 @@ void GLScopeGUI::on_memIndex_valueChanged(int value)
ui->trigLevelFine->setDisabled(value != 0);
ui->trigDelay->setDisabled(value != 0);
ui->trigPre->setDisabled(value != 0);
// Set value
m_glScope->setMemHistoryShift(value);
emit traceMemoryChanged(value);
}

View File

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>583</width>
<height>118</height>
<width>656</width>
<height>214</height>
</rect>
</property>
<property name="font">
@ -23,16 +23,7 @@
<property name="spacing">
<number>3</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<property name="margin">
<number>0</number>
</property>
<item>
@ -411,6 +402,33 @@
</property>
</widget>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="sampleRateText">
<property name="minimumSize">
<size>
<width>52</width>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>Currently displayed trace sample rate (kS/s)</string>
</property>
<property name="text">
<string>00000.00
kS/s</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
</layout>
</item>
<item>