Fix channel marker

This commit is contained in:
srcejon 2024-04-10 01:32:30 +01:00
parent 54713ef67c
commit 6979117b26
2 changed files with 8 additions and 8 deletions

View File

@ -282,6 +282,7 @@ void RemoteTCPSinkGUI::displayRateAndShift()
{
m_channelMarker.setCenterFrequency(m_settings.m_inputFrequencyOffset);
m_channelMarker.setBandwidth(m_settings.m_channelSampleRate);
//m_channelMarker.setVisible(m_settings.m_channelSampleRate != m_basebandSampleRate); // Hide marker if it takes up full bandwidth
}
void RemoteTCPSinkGUI::leaveEvent(QEvent* event)
@ -389,17 +390,19 @@ void RemoteTCPSinkGUI::channelMarkerHighlightedByCursor()
setHighlighted(m_channelMarker.getHighlighted());
}
void RemoteTCPSinkGUI::on_deltaFrequency_changed(int index)
void RemoteTCPSinkGUI::on_deltaFrequency_changed(qint64 value)
{
m_settings.m_inputFrequencyOffset = index;
m_channelMarker.setCenterFrequency(value);
m_settings.m_inputFrequencyOffset = value;
applySetting("inputFrequencyOffset");
}
void RemoteTCPSinkGUI::on_channelSampleRate_changed(int index)
void RemoteTCPSinkGUI::on_channelSampleRate_changed(int value)
{
m_settings.m_channelSampleRate = index;
m_settings.m_channelSampleRate = value;
m_bwAvg.reset();
applySetting("channelSampleRate");
displayRateAndShift();
}
void RemoteTCPSinkGUI::on_gain_valueChanged(int value)

View File

@ -103,12 +103,9 @@ private:
void leaveEvent(QEvent*);
void enterEvent(EnterEventType*);
void applyDecimation();
void applyPosition();
private slots:
void handleSourceMessages();
void on_deltaFrequency_changed(int index);
void on_deltaFrequency_changed(qint64 value);
void on_channelSampleRate_changed(int value);
void on_gain_valueChanged(int value);
void on_sampleBits_currentIndexChanged(int index);