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

Method loadFile

tools/triage/mainwindow.cpp:109–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void MainWindow::loadFile()
110{
111 ui->statusBar->clearMessage();
112 const QString fileName = QFileDialog::getOpenFileName(this, tr("daca results file"), WORK_FOLDER, tr("Text files (*.txt *.log);;All (*.*)"));
113 if (fileName.isEmpty())
114 return;
115 QFile file(fileName);
116 (void)file.open(QIODevice::ReadOnly | QIODevice::Text); // TODO: check result
117 QTextStream textStream(&file);
118 load(textStream);
119}
120
121void MainWindow::loadFromClipboard()
122{

Callers

nothing calls this directly

Calls 2

isEmptyMethod · 0.80
openMethod · 0.45

Tested by

no test coverage detected