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

Method loadProjectFile

gui/mainwindow.cpp:1822–1839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1820}
1821
1822void MainWindow::loadProjectFile(const QString &filePath)
1823{
1824 QFileInfo inf(filePath);
1825 const QString filename = inf.fileName();
1826 formatAndSetTitle(tr("Project:") + ' ' + filename);
1827 addProjectMRU(filePath);
1828
1829 mIsLogfileLoaded = false;
1830 mUI->mResults->setResultsSource(ResultsTree::ResultsSource::Analysis);
1831 mUI->mActionReanalyzeModified->setEnabled(true);
1832 mUI->mActionReanalyzeAll->setEnabled(true);
1833 enableProjectActions(true);
1834 delete mProjectFile;
1835 mProjectFile = new ProjectFile(filePath, this);
1836 mProjectFile->setActiveProject();
1837 if (!loadLastResults())
1838 analyzeProject(mProjectFile, QStringList());
1839}
1840
1841QString MainWindow::getLastResults() const
1842{

Callers

nothing calls this directly

Calls 3

setEnabledMethod · 0.80
setActiveProjectMethod · 0.80
setResultsSourceMethod · 0.45

Tested by

no test coverage detected