| 1820 | } |
| 1821 | |
| 1822 | void 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 | |
| 1841 | QString MainWindow::getLastResults() const |
| 1842 | { |
nothing calls this directly
no test coverage detected