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

Method loadLastResults

gui/mainwindow.cpp:1848–1861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1846}
1847
1848bool MainWindow::loadLastResults()
1849{
1850 const QString &lastResults = getLastResults();
1851 if (lastResults.isEmpty())
1852 return false;
1853 if (!QFileInfo::exists(lastResults))
1854 return false;
1855 mUI->mResults->clear(true);
1856 mUI->mResults->readErrorsXml(lastResults);
1857 mUI->mResults->setCheckDirectory(mSettings->value(SETTINGS_LAST_CHECK_PATH,QString()).toString());
1858 mUI->mActionViewStats->setEnabled(true);
1859 enableResultsButtons();
1860 return true;
1861}
1862
1863void MainWindow::analyzeProject(const ProjectFile *projectFile, const QStringList& recheckFiles, const bool checkLib, const bool checkConfig)
1864{

Callers

nothing calls this directly

Calls 8

isEmptyMethod · 0.80
readErrorsXmlMethod · 0.80
setEnabledMethod · 0.80
QStringClass · 0.70
clearMethod · 0.45
setCheckDirectoryMethod · 0.45
toStringMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected