1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 14:04:46 -04:00

LimeSDR: implemented external clock frequency handling in the GUI

This commit is contained in:
f4exb
2017-11-05 05:59:04 +01:00
parent 045652f5cb
commit 5a2b16d464
6 changed files with 34 additions and 8 deletions
+4 -4
View File
@@ -24,7 +24,7 @@
ExternalClockButton::ExternalClockButton(QWidget* parent) :
QPushButton(parent),
m_externalClockFrequency(0),
m_externalClockFrequencyActive(false)
m_externalClockActive(false)
{
setObjectName("ExternalClockButton");
connect(this, SIGNAL(clicked()), this, SLOT(onClicked()));
@@ -32,7 +32,7 @@ ExternalClockButton::ExternalClockButton(QWidget* parent) :
void ExternalClockButton::onClicked()
{
ExternalClockDialog externalClockDialog(m_externalClockFrequency, m_externalClockFrequencyActive, this);
ExternalClockDialog externalClockDialog(m_externalClockFrequency, m_externalClockActive, this);
externalClockDialog.exec();
updateState();
}
@@ -41,9 +41,9 @@ void ExternalClockButton::updateState()
{
setToolTip(tr("External clock dialog. External clock frequency %1 MHz %2")
.arg(m_externalClockFrequency/1000000.0)
.arg(m_externalClockFrequencyActive ? "enabled" : "disabled"));
.arg(m_externalClockActive ? "enabled" : "disabled"));
if(m_externalClockFrequencyActive)
if(m_externalClockActive)
{
setStyleSheet("ExternalClockButton { background:rgb(128, 70, 0); }");
}