MCPcopy Create free account
hub / github.com/Project-LemonLime/Project_LemonLime / refreshCompilerConfiguration

Method refreshCompilerConfiguration

src/taskeditwidget.cpp:398–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396}
397
398void 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
423void TaskEditWidget::compilerSelectionChanged() {
424 if (! editTask)

Callers

nothing calls this directly

Calls 3

addItemMethod · 0.80
getCompilerNameMethod · 0.80
getCompilerListMethod · 0.45

Tested by

no test coverage detected