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

Method loadResults

gui/mainwindow.cpp:1497–1511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1495}
1496
1497void MainWindow::loadResults(const QString &selectedFile)
1498{
1499 if (selectedFile.isEmpty())
1500 return;
1501 if (mProjectFile)
1502 closeProjectFile();
1503 mIsLogfileLoaded = true;
1504 mUI->mResults->clear(true);
1505 mUI->mResults->setResultsSource(ResultsTree::ResultsSource::Log);
1506 mUI->mActionReanalyzeModified->setEnabled(false);
1507 mUI->mActionReanalyzeAll->setEnabled(false);
1508 mUI->mResults->readErrorsXml(selectedFile);
1509 setPath(SETTINGS_LAST_RESULT_PATH, selectedFile);
1510 formatAndSetTitle(selectedFile);
1511}
1512
1513void MainWindow::loadResults(const QString &selectedFile, const QString &sourceDirectory)
1514{

Callers

nothing calls this directly

Calls 7

setPathFunction · 0.85
isEmptyMethod · 0.80
setEnabledMethod · 0.80
readErrorsXmlMethod · 0.80
clearMethod · 0.45
setResultsSourceMethod · 0.45
setCheckDirectoryMethod · 0.45

Tested by

no test coverage detected