| 43 | } |
| 44 | |
| 45 | void CDlgSettingsRawStream::accept() |
| 46 | { |
| 47 | if(!ui->wTcpNet->CheckValidity(true)) { |
| 48 | ui->tabWidget->setCurrentIndex(0); |
| 49 | return; |
| 50 | } |
| 51 | |
| 52 | m_pPara->SetName(ui->leName->text()); |
| 53 | m_pPara->SetType((CParameterRawStream::TYPE)ui->cbType->currentData().toInt()); |
| 54 | ui->wTcpNet->Accept(); |
| 55 | |
| 56 | QDialog::accept(); |
| 57 | } |
| 58 | |
| 59 | void CDlgSettingsRawStream::on_cbType_currentIndexChanged(int index) |
| 60 | { |
nothing calls this directly
no test coverage detected