mirror of https://github.com/f4exb/sdrangel.git
Channel Analyzer GUI: set sample rate via ScopeVis only
This commit is contained in:
parent
1caf68eb9b
commit
be36430057
|
@ -462,7 +462,6 @@ void ChannelAnalyzerGUI::setNewFinalRate()
|
||||||
QString s = QString::number(m_rate/1000.0, 'f', 1);
|
QString s = QString::number(m_rate/1000.0, 'f', 1);
|
||||||
ui->spanText->setText(tr("%1 kS/s").arg(s));
|
ui->spanText->setText(tr("%1 kS/s").arg(s));
|
||||||
|
|
||||||
ui->glScope->setSampleRate(m_rate);
|
|
||||||
m_scopeVis->setSampleRate(m_rate);
|
m_scopeVis->setSampleRate(m_rate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
const PluginDescriptor ChannelAnalyzerPlugin::m_pluginDescriptor = {
|
const PluginDescriptor ChannelAnalyzerPlugin::m_pluginDescriptor = {
|
||||||
QString("Channel Analyzer"),
|
QString("Channel Analyzer"),
|
||||||
QString("4.0.7"),
|
QString("4.2.3"),
|
||||||
QString("(c) Edouard Griffiths, F4EXB"),
|
QString("(c) Edouard Griffiths, F4EXB"),
|
||||||
QString("https://github.com/f4exb/sdrangel"),
|
QString("https://github.com/f4exb/sdrangel"),
|
||||||
true,
|
true,
|
||||||
|
|
|
@ -76,10 +76,10 @@ ScopeVis::~ScopeVis()
|
||||||
|
|
||||||
void ScopeVis::setSampleRate(int sampleRate)
|
void ScopeVis::setSampleRate(int sampleRate)
|
||||||
{
|
{
|
||||||
if (sampleRate != m_sampleRate)
|
|
||||||
{
|
|
||||||
m_sampleRate = sampleRate;
|
m_sampleRate = sampleRate;
|
||||||
if (m_glScope) m_glScope->setSampleRate(m_sampleRate);
|
|
||||||
|
if (m_glScope) {
|
||||||
|
m_glScope->setSampleRate(m_sampleRate);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue