mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-19 15:07:52 -04: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) {
|
if (checked) {
|
||||||
TransverterDialog transverterDialog(&m_deltaFrequency, this);
|
TransverterDialog transverterDialog(&m_deltaFrequency, this);
|
||||||
transverterDialog.exec();
|
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->setupUi(this);
|
||||||
ui->deltaFrequencyLabel->setText(QString("%1f").arg(QChar(0x94, 0x03)));
|
ui->deltaFrequencyLabel->setText(QString("%1f").arg(QChar(0x94, 0x03)));
|
||||||
ui->deltaFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
ui->deltaFrequency->setColorMapper(ColorMapper(ColorMapper::GrayGold));
|
||||||
ui->deltaFrequency->setValueRange(false, 7, -9999999, 9999999);
|
ui->deltaFrequency->setValueRange(false, 10, -9999999999L, 9999999999L);
|
||||||
ui->deltaFrequency->setValue(*m_deltaFrequency/1000);
|
ui->deltaFrequency->setValue(*m_deltaFrequency);
|
||||||
}
|
}
|
||||||
|
|
||||||
TransverterDialog::~TransverterDialog()
|
TransverterDialog::~TransverterDialog()
|
||||||
@ -42,6 +42,6 @@ TransverterDialog::~TransverterDialog()
|
|||||||
|
|
||||||
void TransverterDialog::accept()
|
void TransverterDialog::accept()
|
||||||
{
|
{
|
||||||
*m_deltaFrequency = ui->deltaFrequency->getValueNew()*1000;
|
*m_deltaFrequency = ui->deltaFrequency->getValueNew();
|
||||||
QDialog::accept();
|
QDialog::accept();
|
||||||
}
|
}
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
<enum>Qt::StrongFocus</enum>
|
<enum>Qt::StrongFocus</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Transverter delta frequency (kHz)</string>
|
<string>Transverter delta frequency (Hz)</string>
|
||||||
</property>
|
</property>
|
||||||
<zorder>deltaFrequencyUnits</zorder>
|
<zorder>deltaFrequencyUnits</zorder>
|
||||||
</widget>
|
</widget>
|
||||||
@ -66,7 +66,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="deltaFrequencyUnits">
|
<widget class="QLabel" name="deltaFrequencyUnits">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>kHz</string>
|
<string>Hz</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user