1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 18:15:45 -05:00

SDRdaemon plugin: enable set button only when address or port fields are edited

This commit is contained in:
f4exb 2016-02-25 01:37:47 +01:00
parent 944418a720
commit f2bf04fa08
2 changed files with 15 additions and 0 deletions

View File

@ -65,6 +65,7 @@ SDRdaemonGui::SDRdaemonGui(PluginAPI* pluginAPI, QWidget* parent) :
DSPEngine::instance()->setSource(m_sampleSource);
displaySettings();
ui->applyButton->setEnabled(false);
}
SDRdaemonGui::~SDRdaemonGui()
@ -264,6 +265,18 @@ void SDRdaemonGui::on_applyButton_clicked(bool checked)
m_port = udpPort;
configureUDPLink();
ui->applyButton->setEnabled(false);
}
void SDRdaemonGui::on_address_textEdited(const QString& arg1)
{
ui->applyButton->setEnabled(true);
}
void SDRdaemonGui::on_port_textEdited(const QString& arg1)
{
ui->applyButton->setEnabled(true);
}
void SDRdaemonGui::on_dcOffset_toggled(bool checked)

View File

@ -87,6 +87,8 @@ private slots:
void on_applyButton_clicked(bool checked);
void on_dcOffset_toggled(bool checked);
void on_iqImbalance_toggled(bool checked);
void on_address_textEdited(const QString& arg1);
void on_port_textEdited(const QString& arg1);
void tick();
};