mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-02-03 09:44:01 -05:00
Transverter button: set in Hz units
This commit is contained in:
parent
84c6488310
commit
25272f21d0
@ -33,7 +33,7 @@ void TransverterButton::onToggled(bool checked)
|
||||
if (checked) {
|
||||
TransverterDialog transverterDialog(&m_deltaFrequency, this);
|
||||
transverterDialog.exec();
|
||||
setToolTip(tr("Transverter frequency translation toggle. Delta frequency %1 kHz").arg(m_deltaFrequency/1000));
|
||||
setToolTip(tr("Transverter frequency translation toggle. Delta frequency %1 MHz").arg(m_deltaFrequency/1000000.0));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -31,8 +31,8 @@ TransverterDialog::TransverterDialog(qint64 *deltaFrequency, QWidget* parent) :
|
||||
ui->setupUi(this);
|
||||
ui->deltaFrequencyLabel->setText(QString("%1f").arg(QChar(0x94, 0x03)));
|
||||
ui->deltaFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
||||
ui->deltaFrequency->setValueRange(false, 7, -9999999, 9999999);
|
||||
ui->deltaFrequency->setValue(*m_deltaFrequency/1000);
|
||||
ui->deltaFrequency->setValueRange(false, 10, -9999999999L, 9999999999L);
|
||||
ui->deltaFrequency->setValue(*m_deltaFrequency);
|
||||
}
|
||||
|
||||
TransverterDialog::~TransverterDialog()
|
||||
@ -42,6 +42,6 @@ TransverterDialog::~TransverterDialog()
|
||||
|
||||
void TransverterDialog::accept()
|
||||
{
|
||||
*m_deltaFrequency = ui->deltaFrequency->getValueNew()*1000;
|
||||
*m_deltaFrequency = ui->deltaFrequency->getValueNew();
|
||||
QDialog::accept();
|
||||
}
|
||||
|
@ -58,7 +58,7 @@
|
||||
<enum>Qt::StrongFocus</enum>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Transverter delta frequency (kHz)</string>
|
||||
<string>Transverter delta frequency (Hz)</string>
|
||||
</property>
|
||||
<zorder>deltaFrequencyUnits</zorder>
|
||||
</widget>
|
||||
@ -66,7 +66,7 @@
|
||||
<item>
|
||||
<widget class="QLabel" name="deltaFrequencyUnits">
|
||||
<property name="text">
|
||||
<string>kHz</string>
|
||||
<string>Hz</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
Loading…
Reference in New Issue
Block a user