MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / setProjectConfigurations

Method setProjectConfigurations

gui/projectfiledialog.cpp:670–679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

668}
669
670void ProjectFileDialog::setProjectConfigurations(const QStringList &configs)
671{
672 mUI->mListVsConfigs->clear();
673 mUI->mListVsConfigs->setEnabled(!configs.isEmpty() && !mUI->mChkAllVsConfigs->isChecked());
674 for (const QString &cfg : configs) {
675 auto* item = new QListWidgetItem(cfg, mUI->mListVsConfigs);
676 item->setFlags(item->flags() | Qt::ItemIsUserCheckable); // set checkable flag
677 item->setCheckState(Qt::Unchecked);
678 }
679}
680
681QString ProjectFileDialog::getImportProject() const
682{

Callers

nothing calls this directly

Calls 4

setEnabledMethod · 0.80
isEmptyMethod · 0.80
setFlagsMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected