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

Method editProjectFile

gui/mainwindow.cpp:2029–2046  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2027}
2028
2029void MainWindow::editProjectFile()
2030{
2031 if (!mProjectFile) {
2032 QMessageBox msg(QMessageBox::Critical,
2033 tr("Cppcheck"),
2034 tr("No project file loaded"),
2035 QMessageBox::Ok,
2036 this);
2037 msg.exec();
2038 return;
2039 }
2040
2041 ProjectFileDialog dlg(mProjectFile, isCppcheckPremium(), this);
2042 if (dlg.exec() == QDialog::Accepted) {
2043 mProjectFile->write();
2044 analyzeProject(mProjectFile, QStringList());
2045 }
2046}
2047
2048void MainWindow::showStatistics()
2049{

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected