| 167 | } |
| 168 | |
| 169 | void TestCaseEditWidget::subtaskDependenceChanged() { |
| 170 | const QString &text = ui->subtaskDependecne->text(); |
| 171 | |
| 172 | if (! editTestCase) |
| 173 | return; |
| 174 | |
| 175 | QStringList list = text.isEmpty() ? QStringList() : text.split(','); |
| 176 | |
| 177 | if (editTestCase->checkDependenceSubtask(list)) { |
| 178 | // QMessageBox::information(this, tr("Information"), tr("Finished!"), QMessageBox::Close); |
| 179 | editTestCase->setDependenceSubtask(list); |
| 180 | } else { |
| 181 | ui->subtaskDependecne->setFocus(); |
| 182 | // ui->subtaskDependecne->set |
| 183 | QMessageBox::warning(this, tr("Error"), tr("Dependence subtask index error!"), QMessageBox::Close); |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | void TestCaseEditWidget::subtaskDependenceClear() { |
| 188 | ui->subtaskDependecne->clear(); |
nothing calls this directly
no test coverage detected