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

Method addIncludeDir

gui/projectfiledialog.cpp:686–695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

684}
685
686void ProjectFileDialog::addIncludeDir(const QString &dir)
687{
688 if (dir.isEmpty())
689 return;
690
691 const QString newdir = QDir::toNativeSeparators(dir);
692 auto *item = new QListWidgetItem(newdir);
693 item->setFlags(item->flags() | Qt::ItemIsEditable);
694 mUI->mListIncludeDirs->addItem(item);
695}
696
697void ProjectFileDialog::addCheckPath(const QString &path)
698{

Callers

nothing calls this directly

Calls 3

isEmptyMethod · 0.80
setFlagsMethod · 0.80
addItemMethod · 0.80

Tested by

no test coverage detected