1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 09:48:45 -05:00

NFM Modulator: GUI corrections

This commit is contained in:
f4exb 2016-11-30 02:30:45 +01:00
parent 0b5d794ea8
commit cd296be836
2 changed files with 9 additions and 7 deletions

View File

@ -201,21 +201,21 @@ void NFMModGUI::on_deltaFrequency_changed(quint64 value)
}
}
void NFMModGUI::on_rfBW_valueChanged(int value)
void NFMModGUI::on_rfBW_currentIndexChanged(int index)
{
m_channelMarker.setBandwidth(m_rfBW[value]);
m_channelMarker.setBandwidth(m_rfBW[index]);
applySettings();
}
void NFMModGUI::on_afBW_valueChanged(int value)
{
ui->afBWText->setText(QString("%1 kHz").arg(value));
ui->afBWText->setText(QString("%1k").arg(value));
applySettings();
}
void NFMModGUI::on_modPercent_valueChanged(int value)
void NFMModGUI::on_fmDev_valueChanged(int value)
{
ui->fmDevText->setText(QString("%1").arg(value / 10.0, 0, 'f', 1));
ui->fmDevText->setText(QString("%1k").arg(value / 10.0, 0, 'f', 1));
applySettings();
}
@ -335,8 +335,10 @@ NFMModGUI::NFMModGUI(PluginAPI* pluginAPI, DeviceSinkAPI *deviceAPI, QWidget* pa
for (int i = 0; i < m_nbRfBW; i++) {
ui->rfBW->addItem(QString("%1").arg(m_rfBW[i] / 1000.0, 0, 'f', 2));
}
ui->rfBW->setCurrentIndex(6);
blockApplySettings(false);
connect(this, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool)));
connect(this, SIGNAL(menuDoubleClickEvent()), this, SLOT(onMenuDoubleClicked()));

View File

@ -61,9 +61,9 @@ private slots:
void on_deltaFrequency_changed(quint64 value);
void on_deltaMinus_toggled(bool minus);
void on_rfBW_valueChanged(int value);
void on_rfBW_currentIndexChanged(int index);
void on_afBW_valueChanged(int value);
void on_modPercent_valueChanged(int value);
void on_fmDev_valueChanged(int value);
void on_micVolume_valueChanged(int value);
void on_audioMute_toggled(bool checked);
void on_tone_toggled(bool checked);