mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-04 16:01:14 -05:00
NFM and DSD demods: corrected squelch open GUI display
This commit is contained in:
parent
f65d0d0019
commit
aa84dba7ce
@ -336,6 +336,8 @@ DSDDemodGUI::DSDDemodGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidg
|
||||
|
||||
connect(&m_pluginAPI->getMainWindow()->getMasterTimer(), SIGNAL(timeout()), this, SLOT(tick()));
|
||||
|
||||
ui->audioMute->setStyleSheet("QToolButton { background:rgb(79,79,79); }");
|
||||
|
||||
ui->deltaFrequency->setColorMapper(ColorMapper(ColorMapper::ReverseGold));
|
||||
ui->channelPowerMeter->setColorTheme(LevelMeterSignalDB::ColorGreenAndBlue);
|
||||
|
||||
@ -608,13 +610,13 @@ void DSDDemodGUI::tick()
|
||||
|
||||
if (squelchOpen != m_squelchOpen)
|
||||
{
|
||||
m_squelchOpen = squelchOpen;
|
||||
|
||||
if (m_squelchOpen) {
|
||||
if (squelchOpen) {
|
||||
ui->audioMute->setStyleSheet("QToolButton { background-color : green; }");
|
||||
} else {
|
||||
ui->audioMute->setStyleSheet("QToolButton { background:rgb(79,79,79); }");
|
||||
}
|
||||
|
||||
m_squelchOpen = squelchOpen;
|
||||
}
|
||||
|
||||
// "slow" updates
|
||||
|
@ -290,6 +290,8 @@ NFMDemodGUI::NFMDemodGUI(PluginAPI* pluginAPI, DeviceSourceAPI *deviceAPI, QWidg
|
||||
ui->ctcss->addItem(QString("%1").arg(ctcss_tones[i]));
|
||||
}
|
||||
|
||||
ui->audioMute->setStyleSheet("QToolButton { background:rgb(79,79,79); }"); // squelch closed
|
||||
|
||||
ui->deltaFrequency->setColorMapper(ColorMapper(ColorMapper::ReverseGold));
|
||||
ui->channelPowerMeter->setColorTheme(LevelMeterSignalDB::ColorGreenAndBlue);
|
||||
|
||||
@ -401,12 +403,12 @@ void NFMDemodGUI::tick()
|
||||
|
||||
if (squelchOpen != m_squelchOpen)
|
||||
{
|
||||
m_squelchOpen = squelchOpen;
|
||||
|
||||
if (m_squelchOpen) {
|
||||
if (squelchOpen) {
|
||||
ui->audioMute->setStyleSheet("QToolButton { background-color : green; }");
|
||||
} else {
|
||||
ui->audioMute->setStyleSheet("QToolButton { background:rgb(79,79,79); }");
|
||||
}
|
||||
|
||||
m_squelchOpen = squelchOpen;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user