Basic channel and device settings dialogs: changed returnPressed to editingFinished event handling

pull/267/head^2^2
f4exb 2018-12-27 09:31:55 +01:00
rodzic 7d93b67a83
commit 74cedb61ac
4 zmienionych plików z 14 dodań i 14 usunięć

Wyświetl plik

@ -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);

Wyświetl plik

@ -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:

Wyświetl plik

@ -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);

Wyświetl plik

@ -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: