| 42 | CompilerSettings::~CompilerSettings() { delete ui; } |
| 43 | |
| 44 | void CompilerSettings::resetEditSettings(Settings *settings) { |
| 45 | editSettings = settings; |
| 46 | const QList<Compiler *> &compilerList = editSettings->getCompilerList(); |
| 47 | ui->compilerList->clear(); |
| 48 | |
| 49 | for (auto *i : compilerList) { |
| 50 | ui->compilerList->addItem(i->getCompilerName()); |
| 51 | } |
| 52 | |
| 53 | if (! compilerList.empty()) { |
| 54 | ui->compilerList->setCurrentRow(0); |
| 55 | setCurrentCompiler(compilerList[0]); |
| 56 | } else { |
| 57 | setCurrentCompiler(nullptr); |
| 58 | } |
| 59 | |
| 60 | refreshItemState(); |
| 61 | } |
| 62 | |
| 63 | auto CompilerSettings::checkValid() -> bool { |
| 64 | const QList<Compiler *> &compilerList = editSettings->getCompilerList(); |
nothing calls this directly
no test coverage detected