diff --git a/plugins/channeltx/modssb/ssbmodgui.cpp b/plugins/channeltx/modssb/ssbmodgui.cpp index 1c6a96f82..61e86844a 100644 --- a/plugins/channeltx/modssb/ssbmodgui.cpp +++ b/plugins/channeltx/modssb/ssbmodgui.cpp @@ -114,6 +114,13 @@ bool SSBModGUI::handleMessage(const Message& message) } } +void SSBModGUI::channelMarkerChanged() +{ + m_settings.m_inputFrequencyOffset = m_channelMarker.getCenterFrequency(); + displaySettings(); + applySettings(); +} + void SSBModGUI::channelMarkerUpdate() { m_settings.m_rgbColor = m_channelMarker.getColor().rgb(); @@ -479,6 +486,8 @@ SSBModGUI::SSBModGUI(PluginAPI* pluginAPI, DeviceSinkAPI *deviceAPI, QWidget* pa m_channelMarker.setCenterFrequency(0); m_channelMarker.setVisible(true); + connect(&m_channelMarker, SIGNAL(changed()), this, SLOT(channelMarkerChanged())); + m_deviceAPI->registerChannelInstance(m_channelID, this); m_deviceAPI->addChannelMarker(&m_channelMarker); m_deviceAPI->addRollupWidget(this); diff --git a/plugins/channeltx/modssb/ssbmodgui.h b/plugins/channeltx/modssb/ssbmodgui.h index 55a1e21e7..8e8e3b4b4 100644 --- a/plugins/channeltx/modssb/ssbmodgui.h +++ b/plugins/channeltx/modssb/ssbmodgui.h @@ -58,7 +58,7 @@ public: private slots: void handleSourceMessages(); - + void channelMarkerChanged(); void on_deltaFrequency_changed(qint64 value); void on_dsb_toggled(bool checked); void on_audioBinaural_toggled(bool checked);