mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-02-03 09:44:01 -05:00
NFM Modulator: GUI corrections
This commit is contained in:
parent
0b5d794ea8
commit
cd296be836
@ -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();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
void NFMModGUI::on_afBW_valueChanged(int value)
|
void NFMModGUI::on_afBW_valueChanged(int value)
|
||||||
{
|
{
|
||||||
ui->afBWText->setText(QString("%1 kHz").arg(value));
|
ui->afBWText->setText(QString("%1k").arg(value));
|
||||||
applySettings();
|
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();
|
applySettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -335,8 +335,10 @@ NFMModGUI::NFMModGUI(PluginAPI* pluginAPI, DeviceSinkAPI *deviceAPI, QWidget* pa
|
|||||||
for (int i = 0; i < m_nbRfBW; i++) {
|
for (int i = 0; i < m_nbRfBW; i++) {
|
||||||
ui->rfBW->addItem(QString("%1").arg(m_rfBW[i] / 1000.0, 0, 'f', 2));
|
ui->rfBW->addItem(QString("%1").arg(m_rfBW[i] / 1000.0, 0, 'f', 2));
|
||||||
}
|
}
|
||||||
|
ui->rfBW->setCurrentIndex(6);
|
||||||
blockApplySettings(false);
|
blockApplySettings(false);
|
||||||
|
|
||||||
|
|
||||||
connect(this, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool)));
|
connect(this, SIGNAL(widgetRolled(QWidget*,bool)), this, SLOT(onWidgetRolled(QWidget*,bool)));
|
||||||
connect(this, SIGNAL(menuDoubleClickEvent()), this, SLOT(onMenuDoubleClicked()));
|
connect(this, SIGNAL(menuDoubleClickEvent()), this, SLOT(onMenuDoubleClicked()));
|
||||||
|
|
||||||
|
@ -61,9 +61,9 @@ private slots:
|
|||||||
|
|
||||||
void on_deltaFrequency_changed(quint64 value);
|
void on_deltaFrequency_changed(quint64 value);
|
||||||
void on_deltaMinus_toggled(bool minus);
|
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_afBW_valueChanged(int value);
|
||||||
void on_modPercent_valueChanged(int value);
|
void on_fmDev_valueChanged(int value);
|
||||||
void on_micVolume_valueChanged(int value);
|
void on_micVolume_valueChanged(int value);
|
||||||
void on_audioMute_toggled(bool checked);
|
void on_audioMute_toggled(bool checked);
|
||||||
void on_tone_toggled(bool checked);
|
void on_tone_toggled(bool checked);
|
||||||
|
Loading…
Reference in New Issue
Block a user