kopia lustrzana https://github.com/f4exb/sdrangel
Basic channel and device settings dialogs: changed returnPressed to editingFinished event handling
rodzic
7d93b67a83
commit
74cedb61ac
|
@ -91,12 +91,12 @@ void BasicChannelSettingsDialog::on_reverseAPI_toggled(bool checked)
|
|||
m_useReverseAPI = checked;
|
||||
}
|
||||
|
||||
void BasicChannelSettingsDialog::on_reverseAPIAddress_returnPressed()
|
||||
void BasicChannelSettingsDialog::on_reverseAPIAddress_editingFinished()
|
||||
{
|
||||
m_reverseAPIAddress = ui->reverseAPIAddress->text();
|
||||
}
|
||||
|
||||
void BasicChannelSettingsDialog::on_reverseAPIPort_returnPressed()
|
||||
void BasicChannelSettingsDialog::on_reverseAPIPort_editingFinished()
|
||||
{
|
||||
bool dataOk;
|
||||
int reverseAPIPort = ui->reverseAPIPort->text().toInt(&dataOk);
|
||||
|
@ -108,7 +108,7 @@ void BasicChannelSettingsDialog::on_reverseAPIPort_returnPressed()
|
|||
}
|
||||
}
|
||||
|
||||
void BasicChannelSettingsDialog::on_reverseAPIDeviceIndex_returnPressed()
|
||||
void BasicChannelSettingsDialog::on_reverseAPIDeviceIndex_editingFinished()
|
||||
{
|
||||
bool dataOk;
|
||||
int reverseAPIDeviceIndex = ui->reverseAPIDeviceIndex->text().toInt(&dataOk);
|
||||
|
@ -120,7 +120,7 @@ void BasicChannelSettingsDialog::on_reverseAPIDeviceIndex_returnPressed()
|
|||
}
|
||||
}
|
||||
|
||||
void BasicChannelSettingsDialog::on_reverseAPIChannelIndex_returnPressed()
|
||||
void BasicChannelSettingsDialog::on_reverseAPIChannelIndex_editingFinished()
|
||||
{
|
||||
bool dataOk;
|
||||
int reverseAPIChannelIndex = ui->reverseAPIChannelIndex->text().toInt(&dataOk);
|
||||
|
|
|
@ -33,10 +33,10 @@ public:
|
|||
private slots:
|
||||
void on_colorBtn_clicked();
|
||||
void on_reverseAPI_toggled(bool checked);
|
||||
void on_reverseAPIAddress_returnPressed();
|
||||
void on_reverseAPIPort_returnPressed();
|
||||
void on_reverseAPIDeviceIndex_returnPressed();
|
||||
void on_reverseAPIChannelIndex_returnPressed();
|
||||
void on_reverseAPIAddress_editingFinished();
|
||||
void on_reverseAPIPort_editingFinished();
|
||||
void on_reverseAPIDeviceIndex_editingFinished();
|
||||
void on_reverseAPIChannelIndex_editingFinished();
|
||||
void accept();
|
||||
|
||||
private:
|
||||
|
|
|
@ -52,12 +52,12 @@ void BasicDeviceSettingsDialog::on_reverseAPI_toggled(bool checked)
|
|||
m_useReverseAPI = checked;
|
||||
}
|
||||
|
||||
void BasicDeviceSettingsDialog::on_reverseAPIAddress_returnPressed()
|
||||
void BasicDeviceSettingsDialog::on_reverseAPIAddress_editingFinished()
|
||||
{
|
||||
m_reverseAPIAddress = ui->reverseAPIAddress->text();
|
||||
}
|
||||
|
||||
void BasicDeviceSettingsDialog::on_reverseAPIPort_returnPressed()
|
||||
void BasicDeviceSettingsDialog::on_reverseAPIPort_editingFinished()
|
||||
{
|
||||
bool dataOk;
|
||||
int reverseAPIPort = ui->reverseAPIPort->text().toInt(&dataOk);
|
||||
|
@ -69,7 +69,7 @@ void BasicDeviceSettingsDialog::on_reverseAPIPort_returnPressed()
|
|||
}
|
||||
}
|
||||
|
||||
void BasicDeviceSettingsDialog::on_reverseAPIDeviceIndex_returnPressed()
|
||||
void BasicDeviceSettingsDialog::on_reverseAPIDeviceIndex_editingFinished()
|
||||
{
|
||||
bool dataOk;
|
||||
int reverseAPIDeviceIndex = ui->reverseAPIDeviceIndex->text().toInt(&dataOk);
|
||||
|
|
|
@ -28,9 +28,9 @@ public:
|
|||
|
||||
private slots:
|
||||
void on_reverseAPI_toggled(bool checked);
|
||||
void on_reverseAPIAddress_returnPressed();
|
||||
void on_reverseAPIPort_returnPressed();
|
||||
void on_reverseAPIDeviceIndex_returnPressed();
|
||||
void on_reverseAPIAddress_editingFinished();
|
||||
void on_reverseAPIPort_editingFinished();
|
||||
void on_reverseAPIDeviceIndex_editingFinished();
|
||||
void accept();
|
||||
|
||||
private:
|
||||
|
|
Ładowanie…
Reference in New Issue