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

Method openProjectFile

gui/mainwindow.cpp:1794–1809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1792}
1793
1794void MainWindow::openProjectFile()
1795{
1796 const QString filter = tr("Project files (*.cppcheck);;All files(*.*)");
1797 const QString filepath = QFileDialog::getOpenFileName(this,
1798 tr("Select Project File"),
1799 getPath(SETTINGS_LAST_PROJECT_PATH),
1800 filter);
1801
1802 if (!filepath.isEmpty()) {
1803 const QFileInfo fi(filepath);
1804 if (fi.exists() && fi.isFile() && fi.isReadable()) {
1805 setPath(SETTINGS_LAST_PROJECT_PATH, filepath);
1806 loadProjectFile(filepath);
1807 }
1808 }
1809}
1810
1811void MainWindow::showScratchpad()
1812{

Callers

nothing calls this directly

Calls 5

getPathFunction · 0.85
setPathFunction · 0.85
isEmptyMethod · 0.80
existsMethod · 0.45
isFileMethod · 0.45

Tested by

no test coverage detected