mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
Fix channel marker
This commit is contained in:
parent
54713ef67c
commit
6979117b26
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user