| 396 | } |
| 397 | |
| 398 | void TaskEditWidget::refreshCompilerConfiguration() { |
| 399 | if (! editTask) |
| 400 | return; |
| 401 | |
| 402 | ui->compilersList->setEnabled(false); |
| 403 | ui->configurationSelect->setEnabled(false); |
| 404 | ui->configurationLabel->setEnabled(false); |
| 405 | ui->compilersList->clear(); |
| 406 | ui->configurationSelect->clear(); |
| 407 | const QList<Compiler *> &compilerList = settings->getCompilerList(); |
| 408 | |
| 409 | if (compilerList.isEmpty()) |
| 410 | return; |
| 411 | |
| 412 | for (auto *i : compilerList) { |
| 413 | ui->compilersList->addItem(i->getCompilerName()); |
| 414 | } |
| 415 | |
| 416 | ui->compilersList->setEnabled(true); |
| 417 | ui->configurationSelect->setEnabled(true); |
| 418 | ui->configurationLabel->setEnabled(true); |
| 419 | ui->compilersList->setCurrentRow(0); |
| 420 | compilerSelectionChanged(); |
| 421 | } |
| 422 | |
| 423 | void TaskEditWidget::compilerSelectionChanged() { |
| 424 | if (! editTask) |
nothing calls this directly
no test coverage detected