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

Method addExcludePath

gui/projectfiledialog.cpp:708–717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706}
707
708void ProjectFileDialog::addExcludePath(const QString &path)
709{
710 if (path.isEmpty())
711 return;
712
713 const QString newpath = QDir::toNativeSeparators(path);
714 auto *item = new QListWidgetItem(newpath);
715 item->setFlags(item->flags() | Qt::ItemIsEditable);
716 mUI->mListExcludedPaths->addItem(item);
717}
718
719QString ProjectFileDialog::getRootPath() const
720{

Callers

nothing calls this directly

Calls 3

isEmptyMethod · 0.80
setFlagsMethod · 0.80
addItemMethod · 0.80

Tested by

no test coverage detected