mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-17 05:41:56 -05:00
RTLSDR tranverter mode implemented
This commit is contained in:
parent
82509e5785
commit
67e93f6d40
@ -234,6 +234,7 @@ void RTLSDRGui::displaySettings()
|
||||
ui->decim->setCurrentIndex(m_settings.m_log2Decim);
|
||||
ui->fcPos->setCurrentIndex((int) m_settings.m_fcPos);
|
||||
ui->checkBox->setChecked(m_settings.m_noModMode);
|
||||
ui->agc->setChecked(m_settings.m_agc);
|
||||
}
|
||||
|
||||
void RTLSDRGui::sendSettings()
|
||||
|
@ -307,7 +307,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Transverter frequency translation toggle</string>
|
||||
<string>Transverter frequency translation dialog</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>X</string>
|
||||
|
@ -26,6 +26,7 @@ TransverterButton::TransverterButton(QWidget* parent) :
|
||||
m_deltaFrequency(0),
|
||||
m_deltaFrequencyActive(false)
|
||||
{
|
||||
setObjectName("TransverterButton");
|
||||
connect(this, SIGNAL(clicked()), this, SLOT(onClicked()));
|
||||
}
|
||||
|
||||
@ -41,4 +42,14 @@ void TransverterButton::updateState()
|
||||
setToolTip(tr("Transverter frequency translation dialog. Delta frequency %1 MHz %2")
|
||||
.arg(m_deltaFrequency/1000000.0)
|
||||
.arg(m_deltaFrequencyActive ? "enabled" : "disabled"));
|
||||
|
||||
if(m_deltaFrequencyActive)
|
||||
{
|
||||
setStyleSheet("TransverterButton { background:rgb(128, 70, 0); }");
|
||||
}
|
||||
else
|
||||
{
|
||||
setStyleSheet("TransverterButton { background:rgb(48, 48, 48); }");
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user