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

Method addExcludeFile

gui/projectfiledialog.cpp:887–895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

885}
886
887void ProjectFileDialog::addExcludeFile()
888{
889 const QFileInfo inf(mProjectFile->getFilename());
890 const QDir &dir = inf.absoluteDir();
891 QMap<QString,QString> filters;
892 filters[tr("Source files")] = "*.c *.cpp";
893 filters[tr("All files")] = "*.*";
894 addExcludePath(QFileDialog::getOpenFileName(this, tr("Exclude file"), dir.canonicalPath(), toFilterString(filters)));
895}
896
897void ProjectFileDialog::editExcludePath()
898{

Callers

nothing calls this directly

Calls 1

toFilterStringFunction · 0.85

Tested by

no test coverage detected