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

Method resetEditSettings

src/compilersettings.cpp:44–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42CompilerSettings::~CompilerSettings() { delete ui; }
43
44void 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
63auto CompilerSettings::checkValid() -> bool {
64 const QList<Compiler *> &compilerList = editSettings->getCompilerList();

Callers

nothing calls this directly

Calls 3

addItemMethod · 0.80
getCompilerNameMethod · 0.80
getCompilerListMethod · 0.45

Tested by

no test coverage detected